// JavaScript source code
F.module("/static/widget/common/userbar/twbanner/twbanner.js",
function(e, b) {
    var d = e("/static/common/lib/tangram/base/base.js");
    var f = d.cookie.get("IK_TWBAR_X");
    var a = d("#goto-tw-close");
    if (f != "1") {
        a.parent().show()
    }
    a.click(function() {
        var g = new Date();
        var c = new Date(g.getFullYear(), g.getMonth(), g.getDate() + 1);
        d.cookie.set("IK_TWBAR_X", "1", {
            path: "/",
            expires: c
        });
        a.parent().hide()
    });
    return b
},
["/static/common/lib/tangram/base/base.js"]);
F.module("/static/widget/common/userbar/userbar.js",
function(a, e) {
    var c = a("/static/common/lib/tangram/base/base.js");
    var f = a("/static/common/ui/event/event.js");
    var h = a("/static/common/ui/login/login.js");
    var d = a("/static/common/ui/log/log.js");
    var i = a("/static/common/ui/store/store.js");
    function g() {
        c("#userbar-login").click(function(o) {
            f.fire("login.check");
            o.preventDefault()
        });
        var l = c("#userbar-reg");
        if (l.length) {
            var n = l.prop("pathname"),
            m = n.indexOf("/") == 0 ? "": "/";
            m += n + "?oldurl=" + encodeURIComponent(window.location.href);
            l.attr("href", m)
        }
        c("#userbar-logout").attr("href", "http://passport.baidu.com/?logout&aid=7&u=" + escape(location.href)).mousedown(function(o) {
            d.send({
                url: location.href,
                type: "2046",
                action: "logout"
            })
        });
        var k = c("#no-username-set").click(function(o) {
            f.fire("login.setUsername");
            o.preventDefault()
        });
        if (k.length) {
            d.send({
                type: 2030,
                pv_from: "usrbar"
            })
        }
        new b("my-iknow", "my-home-list", {
            left: 0,
            top: 21
        });
        new b("user-name", "username-sublist", {
            right: 15,
            top: 21
        })
    }
    function j() {
        var k = F.context("user");
        var l = "http://msg.baidu.com/msg/msg_dataGetmsgCount?from=msg";
        c.sio(l).callByBrowser(function() {
            if (!window.redmsg || redmsg.length < 1) {
                return
            }
            var m = (msgnum == 0) ? "\u79c1\u4fe1": '\u79c1\u4fe1(<strong style="color:#f00;">' + msgnum + "</strong>)";
            c("#userbar-msg").html('<a href="http://msg.baidu.com" target="_blank">' + m + "</a>");
            f.fire("userbar.reposition", {
                waiting: false
            })
        });
        if (c("#IMBubble").length) {
            F.use("/static/common/ui/hi/hi.js");
            setTimeout(function() {
                c.sio("http://st0.im.baidu.com/bubble/iknow/imbubble.js").callByBrowser(function() {
                    if ("undefined" != typeof bdimBubble) {
                        var m = F.context("user");
                        bdimBubble.init(m.name, "IMBubble");
                        f.fire("userbar.reposition", {
                            waiting: false
                        });
                        c("#IMBubble").click(function(n) {
                            d.send({
                                type: 2031,
                                module: "common",
                                area: "hi",
                                action: "click"
                            })
                        })
                    }
                })
            },
            1000)
        }
    }
    function b(k, p, l) {
        var m = this,
        n = c("#" + k),
        o = c("#" + p);
        m.timeout = 0;
        n.mouseover(function(t) {
            clearTimeout(m.timeout);
            var s = c.page.getViewWidth();
            var r = c("#userbar").outerWidth();
            var q = c(this).position();
            if (c.isNumber(l.right)) {
                l.left = n.outerWidth() - o.width() - l.right
            }
            o.css({
                top: l.top,
                left: q.left + l.left
            }).show();
            f.fire("userbar.show", {
                waiting: true
            })
        }).mouseout(function(q) {
            m.timeout = setTimeout(function() {
                o.hide();
                clearTimeout(m.timeoutId);
                f.fire("userbar.hide", {
                    waiting: false
                })
            },
            500)
        });
        o.mouseover(function(q) {
            clearTimeout(m.timeout);
            o.show();
            f.fire("userbar.show", {
                waiting: true
            })
        }).mouseout(function(q) {
            n.mouseout()
        });
        o.find("li a").mouseover(function(q) {
            c(this).addClass("userbar-li-mover").parent().addClass("userbar-li-mover")
        }).mouseout(function(q) {
            c(this).removeClass("userbar-li-mover").parent().removeClass("userbar-li-mover")
        })
    }
    c(function() {
        if (F.context("user").isLogin == "1") {
            j();
            var k = c.cookie.get("IK_PASS"),
            n = c.cookie.get("BAIDUID") ? c.cookie.get("BAIDUID") : 0,
            l = n + F.context("user")["name"],
            q = {
                expires: 1000 * 60 * 60 * 24 * 30,
                path: "/"
            };
            if (k) {
                if (k != l && !location.href.match(/autorefresh=/) && !location.href.match(/zhidao.baidu.com\/question/)) {
                    var m = location.href,
                    p = "autorefresh=" + new Date().getTime(),
                    o = location.hash;
                    if (location.hash) {
                        m = m.split("#")[0]
                    }
                    m = m.match(/autorefresh=/) ? m.replace(/autorefresh=\w+&?/g, "") : m;
                    m = m.match(/[&|\?]$/) ? m.replace(/[&|\?]$/, "") : m;
                    m = m.match(/\?/) ? m + "&" + p: m + "?" + p;
                    if (location.hash) {
                        m = m + o
                    }
                    c.cookie.set("IK_PASS", l, q);
                    location.replace(m)
                }
            } else {
                c.cookie.set("IK_PASS", l, q)
            }
        } else {
            i.remove("ikmsg_data");
            i.remove("ikmsg_time");
            c.cookie.remove("msgGuide", {
                path: "/"
            });
            c.cookie.remove("msgGuideStep", {
                path: "/"
            });
            if (c.cookie.get("IK_PASS")) {
                c.cookie.remove("IK_PASS", {
                    path: "/"
                })
            }
        }
        F.use("/static/common/ui/msg/msg.js",
        function(r) {
            r.init()
        })
    });
    g();
    return e
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/event/event.js", "/static/common/ui/login/login.js", "/static/common/ui/log/log.js", "/static/common/ui/store/store.js"]);
F.module("/static/widget/common/menu/menu.js",
function(d, a) {
    var c = d("/static/common/lib/tangram/base/base.js"),
    e = d("/static/common/ui/log/log.js"),
    b = d("/static/common/ui/event/event.js");
    if (!c(".qb-section").size()) {
        b.fire("log.init", {
            key: 2054,
            evtType: "mousedown",
            query: "#menu a, #sub-menu a"
        })
    }
    var f = function() {
        if (c.date.format(new Date(), "yyyy-MM-dd") == "2013-06-01") {
            c("#search-box .logo").css("background", "url(http://img.iknow.bdimg.com/home/logo-zhidao-children.png)").attr("href", "http://zhidao.baidu.com/s/light/index.html?fr=logo").attr("target", "_blank")
        }
    };
    if (c.browser.ie != 6) {
        f()
    } else {
        c(function() {
            f()
        })
    }
    a.init = function() {
        c("#menu li div.sub-menu").each(function() {
            c(this).parent().addClass("arraw").mouseenter(function(g) {
                c(this).addClass("show-sub arraw-down");
                c(".sub-menu", this).show()
            }).mouseleave(function(g) {
                c(this).removeClass("show-sub arraw-down");
                c(".sub-menu", this).hide()
            })
        })
    };
    return a
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/log/log.js", "/static/common/ui/event/event.js"]);
F.module("/static/common/ui/baidu/fx/fx.js",
function(c, a) {
    var b = c("/static/common/lib/tangram/base/base.js");
    b.fx = b.fx || {};
    b.fx.opacity = function(g, d) {
        if (! (g = b.dom.g(g))) {
            return null
        }
        d = b.object.extend({
            from: 0,
            to: 1
        },
        d || {});
        var h = g,
        f = b.fx.create(h, b.object.extend({
            initialize: function() {
                b.dom.show(g),
                b.browser.ie < 9 ? this.protect("filter") : (this.protect("opacity"), this.protect("KHTMLOpacity")),
                this.distance = this.to - this.from
            },
            render: function(j) {
                var i = this.distance * j + this.from;
                b.browser.ie < 9 ? h.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity:" + Math.floor(i * 100) + ")": (h.style.opacity = i, h.style.KHTMLOpacity = i)
            }
        },
        d), "baidu.fx.opacity");
        return f.launch()
    };
    b.fx.fadeIn = function(f, d) {
        if (! (f = b.dom.g(f))) {
            return null
        }
        var g = b.fx.opacity(f, b.object.extend({
            from: 0,
            to: 1,
            restoreAfterFinish: !0
        },
        d || {}));
        return g.__type = "baidu.fx.fadeIn",
        g
    };
    b.fx.fadeOut = function(f, d) {
        if (! (f = b.dom.g(f))) {
            return null
        }
        var g = b.fx.opacity(f, b.object.extend({
            from: 1,
            to: 0,
            restoreAfterFinish: !0
        },
        d || {}));
        return g.addEventListener("onafterfinish",
        function() {
            b.dom.hide(this.element)
        }),
        g.__type = "baidu.fx.fadeOut",
        g
    };
    b.fx.expand = function(j, f) {
        if (! (j = b.dom.g(j))) {
            return null
        }
        var l = j,
        h, d, g = {
            vertical: {
                value: "height",
                offset: "offsetHeight",
                stylesValue: ["paddingBottom", "paddingTop", "borderTopWidth", "borderBottomWidth"]
            },
            horizontal: {
                value: "width",
                offset: "offsetWidth",
                stylesValue: ["paddingLeft", "paddingRight", "borderLeftWidth", "borderRightWidth"]
            }
        },
        k = b.fx.create(l, b.object.extend({
            orientation: "vertical",
            initialize: function() {
                function i(o, m) {
                    var p = parseInt(b.dom.getStyle(o, m));
                    return p = isNaN(p) ? 0 : p,
                    p = b.isNumber(p) ? p: 0,
                    p
                }
                d = g[this.orientation],
                b.dom.show(l),
                this.protect(d.value),
                this.protect("overflow"),
                this.restoreAfterFinish = !0,
                h = l[d.offset],
                b.forEach(d.stylesValue,
                function(e) {
                    h -= i(l, e)
                }),
                l.style.overflow = "hidden",
                l.style[d.value] = "1px"
            },
            transition: function(i) {
                return Math.sqrt(i)
            },
            render: function(i) {
                l.style[d.value] = Math.floor(i * h) + "px"
            }
        },
        f || {}), "baidu.fx.expand_collapse");
        return k.launch()
    };
    b.fx.collapse = function(j, f) {
        if (! (j = b.dom.g(j))) {
            return null
        }
        var l = j,
        h, d, g = {
            vertical: {
                value: "height",
                offset: "offsetHeight",
                stylesValue: ["paddingBottom", "paddingTop", "borderTopWidth", "borderBottomWidth"]
            },
            horizontal: {
                value: "width",
                offset: "offsetWidth",
                stylesValue: ["paddingLeft", "paddingRight", "borderLeftWidth", "borderRightWidth"]
            }
        },
        k = b.fx.create(l, b.object.extend({
            orientation: "vertical",
            initialize: function() {
                d = g[this.orientation],
                this.protect(d.value),
                this.protect("overflow"),
                this.restoreAfterFinish = !0,
                h = l[d.offset],
                l.style.overflow = "hidden"
            },
            transition: function(i) {
                return Math.pow(1 - i, 2)
            },
            render: function(i) {
                l.style[d.value] = Math.floor(i * h) + "px"
            },
            finish: function() {
                b.dom.hide(l)
            }
        },
        f || {}), "baidu.fx.expand_collapse");
        return k.launch()
    };
    b.fx.moveBy = function(h, f, j) {
        if (! (h = b.dom.g(h)) || b.dom.getStyle(h, "position") == "static" || typeof f != "object") {
            return null
        }
        var g = {};
        g.x = f[0] || f.x || 0,
        g.y = f[1] || f.y || 0;
        var d = b.fx.move(h, b.object.extend(g, j || {}));
        return d
    };
    b.fx.highlight = function(e, f) {
        if (! (e = b.dom.g(e))) {
            return null
        }
        var g = e;
        var h = b.fx.create(g, b.object.extend({
            initialize: function() {
                var i = this,
                m = b.dom.getStyle,
                n = b.string.formatColor,
                p = n(m(g, "color")) || "#000000",
                q = n(m(g, "backgroundColor"));
                i.beginColor = i.beginColor || q || "#FFFF00";
                i.endColor = i.endColor || q || "#FFFFFF";
                i.finalColor = i.finalColor || i.endColor || i.element.style.backgroundColor;
                i.textColor == p && (i.textColor = "");
                this.protect("color");
                this.protect("backgroundColor");
                i.c_b = [];
                i.c_d = [];
                i.t_b = [];
                i.t_d = [];
                for (var d, o = 0; o < 3; o++) {
                    d = 2 * o + 1;
                    i.c_b[o] = parseInt(i.beginColor.substr(d, 2), 16);
                    i.c_d[o] = parseInt(i.endColor.substr(d, 2), 16) - i.c_b[o];
                    if (i.textColor) {
                        i.t_b[o] = parseInt(p.substr(d, 2), 16);
                        i.t_d[o] = parseInt(i.textColor.substr(d, 2), 16) - i.t_b[o]
                    }
                }
            },
            render: function(i) {
                for (var l = this,
                n = "#",
                o = "#",
                d, m = 0; m < 3; m++) {
                    d = Math.round(l.c_b[m] + l.c_d[m] * i).toString(16);
                    n += ("00" + d).substr(d.length);
                    if (l.textColor) {
                        d = Math.round(l.t_b[m] + l.t_d[m] * i).toString(16);
                        o += ("00" + d).substr(d.length)
                    }
                }
                g.style.backgroundColor = n;
                l.textColor && (g.style.color = o)
            },
            finish: function() {
                this.textColor && (g.style.color = this.textColor);
                g.style.backgroundColor = this.finalColor
            }
        },
        f || {}), "baidu.fx.highlight");
        return h.launch()
    };
    a = b.fx;
    return a
},
["/static/common/lib/tangram/base/base.js"]);
F.module("/static/common/ui/baidu/baidu.js",
function(c, a) {
    var b = c("/static/common/lib/tangram/base/base.js");
    c("/static/common/ui/baidu/fx/fx.js");
    b.url = {
        escapeSymbol: function(d) {
            return String(d).replace(/[#%&+=\/\\\ \f\r\n\t]/g,
            function(e) {
                return "%" + (256 + e.charCodeAt()).toString(16).substring(1).toUpperCase()
            })
        },
        getQueryValue: function(e, f) {
            var g = new RegExp("(^|&|\\?|#)" + b.string(f).escapeReg() + "=([^&#]*)(&|\x24|#)", "");
            var d = e.match(g);
            if (d) {
                return d[2]
            }
            return null
        },
        jsonToQuery: function(f, h) {
            var d = [],
            g,
            e = h ||
            function(i) {
                return b.url.escapeSymbol(i)
            };
            b.forEach(f,
            function(j, i) {
                if (b.isArray(j)) {
                    g = j.length;
                    while (g--) {
                        d.push(i + "=" + e(j[g], i))
                    }
                } else {
                    d.push(i + "=" + e(j, i))
                }
            });
            return d.join("&")
        },
        queryToJson: function(p) {
            if (p) {
                var k = p.substr(p.lastIndexOf("?") + 1).split("&"),
                j = k.length,
                i = null,
                m,
                n,
                l;
                for (var o = 0; o < j; o++) {
                    m = k[o].split("=");
                    if (m.length < 2) {
                        continue
                    } ! i && (i = {});
                    n = m[0];
                    l = m[1];
                    m = i[n];
                    if (!m) {
                        i[n] = l
                    } else {
                        if (b.type(m) == "array") {
                            m.push(l)
                        } else {
                            i[n] = [m, l]
                        }
                    }
                }
                return i
            }
        }
    };
    b.page = b.page || {};
    b.page.loadCssFile = function(e) {
        var d = document.createElement("link");
        d.setAttribute("rel", "stylesheet");
        d.setAttribute("type", "text/css");
        d.setAttribute("href", e);
        document.getElementsByTagName("head")[0].appendChild(d)
    };
    return a
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/baidu/fx/fx.js"]);
F.module("/static/common/ui/baidu/form/form.js",
function(c, a) {
    var b = c("/static/common/lib/tangram/base/base.js");
    c("/static/common/ui/baidu/baidu.js");
    b.form = b.form || {};
    b.form.json = function(f, h) {
        var e = f.elements,
        h = h ||
        function(t, i) {
            return t
        },
        l = {},
        r,
        n,
        s,
        g,
        d,
        q,
        p,
        o;
        function j(i, t) {
            var u = l[i];
            if (u) {
                u.push || (l[i] = [u]);
                l[i].push(t)
            } else {
                l[i] = t
            }
        }
        for (var k = 0,
        m = e.length; k < m; k++) {
            r = e[k];
            s = r.name;
            if (!r.disabled && s) {
                n = r.type;
                g = r.value;
                switch (n) {
                    case "radio":
                    case "checkbox":
                        if (!r.checked) {
                            break
                        }
                    case "textarea":
                    case "text":
                    case "password":
                    case "hidden":
                    case "file":
                    case "select-one":
                        j(s, h(g, s));
                        break;
                    case "select-multiple":
                        d = r.options;
                        p = d.length;
                        for (q = 0; q < p; q++) {
                            o = d[q];
                            if (o.selected) {
                                j(s, h(o.value, s))
                            }
                        }
                        break
                }
            }
        }
        return l
    };
    b.form.ValidRule = b.form.ValidRule || b.createClass(function() {
        var d = this;
        d._rules = {
            required: function(e) {
                return !! (e && !/^(?:\s|\u3000)+$/.test(e))
            },
            remote: function(f, e) {
                return !! (e && e.toLowerCase() == "true")
            },
            email: /^[\w!#\$%'\*\+\-\/=\?\^`{}\|~]+([.][\w!#\$%'\*\+\-\/=\?\^`{}\|~]+)*@[-a-z0-9]{1,20}[.][a-z0-9]{1,10}([.][a-z]{2})?$/i,
            number: /^(?:[1-9]\d+|\d)(?:\.\d+)?$/,
            maxlength: function(f, e) {
                return f.length <= e
            },
            minlength: function(f, e) {
                return f.length >= e
            },
            rangelength: function(f, e) {
                return f.length >= e[0] && f.length <= e[1]
            },
            equal: function(f, e) {
                return f === (b.isFunction(e) ? e() : e)
            },
            telephone: /^(((?:[\+0]\d{1,3}-[1-9]\d{1,2})|\d{3,4})-)?\d{5,8}$/
        }
    }).extend({
        _getRule: function(d) {
            var e = this;
            return b.isString(d) ? e._rules[d] : e._rules
        },
        match: function(e, i, j, d) {
            var f = this,
            g = f._getRule(e),
            h = d && d.param;
            j(b.isFunction(g) ? g(i, h) : g.test(i))
        },
        addRule: function(d, e) {
            this._rules[d] = e
        }
    });
    b.form.Validator = b.createClass(function(d, j, m) {
        var k = this,
        l = b.form.Validator,
        h = l._addons.length,
        g = 0,
        e;
        k._form = b.dom.g(d);
        k._fieldRule = j;
        k._validRule = new b.form.ValidRule();
        b.object.extend(k, m);
        e = k.validateEvent.split(",");
        function f(i, n) {
            var o = {
                element: n ? k._form.elements[n] : k._form,
                eventName: i,
                handler: b.fn.bind("_onEventHandler", k, n)
            };
            b(o.element).on(o.eventName, o.handler);
            k.on("ondispose",
            function() {
                b(o.element).off(o.eventName, o.handler)
            })
        }
        b.object.each(k._fieldRule,
        function(n, i) {
            b.array.each(b.isString(n.eventName) ? n.eventName.split(",") : e,
            function(o, p) {
                f(p, i)
            })
        });
        k.validateOnSubmit && f("onsubmit");
        for (; g < h; g++) {
            l._addons[g](k)
        }
    }).extend({
        validateEvent: "blur",
        validateOnSubmit: true,
        _onEventHandler: function(e, d) {
            var f = this;
            if (!e) {
                d.preventDefault();
                f.validate(function(h, g) {
                    h && f._form.submit()
                });
                return
            }
            f.validateField(e)
        },
        addRule: function(d, e, g) {
            var f = this;
            f._validRule.addRule(d, e);
            f.fire("addrule", {
                name: d,
                handler: e,
                message: g
            })
        },
        validate: function(h) {
            var f = this,
            g = b.object.keys(f._fieldRule),
            d = [],
            e = 0;
            b.array.each(g,
            function(j, k) {
                f.validateField(k,
                function(l, i) {
                    d = d.concat(i);
                    if (e++>=g.length - 1) {
                        b.isFunction(h) && h(d.length <= 0, d);
                        f.fire("validate", {
                            resultList: d
                        })
                    }
                })
            })
        },
        validateField: function(d, l) {
            var h = this,
            k, m = h._fieldRule[d].rule,
            j = h._form.elements[d].value,
            f = b.array(b.object.keys(m)).filter(function(n) {
                k = m[n];
                return (k.hasOwnProperty("param") ? k.param: k) !== false
            }),
            e = [],
            g = 0;
            function i() {
                if (g++>=f.length - 1) {
                    h.fire("validatefield", {
                        field: d,
                        resultList: e
                    });
                    b.isFunction(l) && l(e.length <= 0, e)
                }
            }
            f.length == 0 && i();
            b.array.each(f,
            function(n, o) {
                k = m[o];
                h._validRule.match(o, j,
                function(p) { ! p && e.push({
                    type: o,
                    field: d,
                    result: p
                });
                    i()
                },
                {
                    param: k.hasOwnProperty("param") ? k.param: k
                })
            })
        },
        dispose: function() {
            var d = this;
            d.fire("ondispose")
        }
    });
    b.form.Validator._addons = [];
    b.form.Validator.register = function(d) {
        typeof d == "function" && b.form.Validator._addons.push(d)
    };
    b.form.Validator.register(function(d) {
        if (!d.showMessage) {
            return
        }
        d._defaultId = b.id();
        d._defaultMessage = {
            required: "This field is required.",
            remote: "Please fix this field.",
            email: "Please enter a valid email address.",
            number: "Please enter a valid number.",
            maxlength: "Please enter no more than #{param} characters.",
            minlength: "Please enter at least #{param} characters.",
            rangelength: "Please enter a value between #{param[0]} and #{param[1]} characters long.",
            equal: "Please enter the same value again.",
            telephone: "Please enter a valid telephone number."
        };
        d.on("addrule",
        function(e) {
            d._defaultMessage[e.name] = e.message
        });
        d.on("validatefield",
        function(e) {
            var h = d._getContentElement(e.field),
            j = e.resultList.length <= 0,
            g = j ? b.object.keys(d._fieldRule[e.field].rule).pop() : e.resultList[0].type,
            f = d._fieldRule[e.field].rule[g],
            i = f.message; ! i && (i = d._defaultMessage[g]);
            i = j ? (i.success || "") : (i.failure || i);
            b(h).addClass("tangram-" + d.uiType + "-" + (j ? "success": "failure")).addClass("tangram-" + d.uiType + "-" + e.field + "-" + (j ? "success": "failure")).removeClass("tangram-" + d.uiType + "-" + (j ? "failure": "success")).removeClass("tangram-" + d.uiType + "-" + e.field + "-" + (j ? "failure": "success")).html(b.string.format(i, {
                param: f.param,
                "param[0]": b.isArray(f.param) ? f.param[0] : "",
                "param[1]": b.isArray(f.param) ? f.param[1] : ""
            }))
        })
    });
    b.object.extend(b.form.Validator.prototype, {
        showMessage: true,
        uiType: "validator",
        tplDOM: '<label id="#{id}" class="#{class}"></label>',
        _getContentElement: function(h) {
            var g = this,
            d = g._defaultId + "_" + h,
            f = b.dom.g(d),
            e = b.dom.g(g._fieldRule[h].messageContainer);
            if (!f) {
                b.dom.insertHTML(e || g._form.elements[h], e ? "beforeEnd": "afterEnd", b.string.format(g.tplDOM, {
                    id: d,
                    "class": "tangram-" + g.uiType
                }));
                f = b.dom.g(d)
            }
            return f
        },
        getMessageContainer: function(d) {
            return b.dom.g(this._defaultId + "_" + d)
        }
    });
    a = b.form;
    return a
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/baidu/baidu.js"]);
F.module("/static/common/ui/category/category.js",
function(c, a) {
    var b = c("/static/common/lib/tangram/base/base.js");
    var d = b.createClass(function(g) {
        var h = this;
        b.forEach(g,
        function(l, k) {
            b.isFunction(l) ? h.on(k, l) : h[k] = l
        });
        if (b.isString(h.target)) {
            h.target = b("#" + h.target)
        }
        h.optionTpl = '<option value="#{0}">#{1}</option>';
        h.result = {
            valueArr: [],
            textArr: []
        };
        h.options = g;
        if (!h.data.level1) {
            b.sio(g.source || "/classleveljs").callByBrowser(function() {
                h.data = {
                    level1: class_level_1,
                    level2: class_level_2,
                    level3: class_level_3
                };
                j()
            })
        } else {
            j()
        }
        function j() {
            h.container = b("<div/>").addClass("category-main").addClass(h.className).attr("id", "cate-" + h.guid).appendTo(h.target);
            b.array([1, 2, 3]).forEach(function(k) {
                var l = b("<select/>").attr({
                    size: h.selectSize || 16
                }).addClass("cate-sel-" + k).hide().appendTo(h.container).change(function(m) {
                    f(k, b(this));
                    h.fire("change")
                }).after(b('<span class="cate-splitor"/>').html(h.splitor || "").hide())
            });
            h.selector = b("select", h.container[0]);
            i(h.selector.eq(0), h.data.level1);
            if (h.defaultValue) {
                h.setValue(h.defaultValue)
            }
            h.fire("init")
        }
        function f(m, k) {
            var l = k.val();
            if (m < 3) {
                h.selector.eq(2).hide().empty().prev().hide();
                l && i(h.selector.eq(m), e(l, m + 1), m)
            }
        }
        function e(m, l) {
            var k = [];
            b.forEach(h.data["level" + l],
            function(p, n) {
                var o = [];
                o[0] = p[1];
                o[1] = p[2];
                m == p[0] && k.push(o)
            });
            return k
        }
        function i(l, k, m) {
            if (! (l && k && k.length)) {
                return
            }
            l.empty().show().prev().show();
            if (!h.options.unselect) {
                m && b(b.string(h.optionTpl).format([0, "\u4e0d\u9009"])).appendTo(l).prop("selected", true)
            }
            b.each(k,
            function(n, o) {
                l.get(0) && l.get(0).options.add(new Option(o[1], o[0]))
            });
            if (h.options.unselect && m) {
                setTimeout(function() {
                    l.get(0).selectedIndex = 0
                },
                20)
            }
        }
    }).extend({
        data: {},
        setValue: function(g) {
            var f = this;
            if (b.isArray(g)) {
                b.forEach(g,
                function(i, h) {
                    f.selector.eq(h).val(i || "0").change()
                })
            } else {
                f.setValue(e(g))
            }
            function e(o, n) {
                if (!o) {
                    return
                }
                n = n || 3;
                var m = f.data["level" + n];
                for (var j = 0,
                h = m.length; j < h; j++) {
                    var l = m[j];
                    if (n == 1) {
                        if (o == l[0]) {
                            return [o, "0", "0"]
                        }
                    } else {
                        if (o == l[1]) {
                            var k = n == 2 ? l: e(l[0], 2);
                            return [k[0], k[1], n == 3 ? o: "0"]
                        }
                    }
                }
                return e(o, --n)
            }
        },
        getValue: function() {
            var f = this,
            e = {
                cid: 0,
                name: "",
                arrCid: [],
                arrName: []
            };
            f.selector.each(function(g, h) {
                if (this.value && this.value != "0") {
                    e.cid = e.arrCid[g] = this.value;
                    e.name = e.arrName[g] = b(this.options[this.selectedIndex]).text()
                }
            });
            return e.cid ? e: false
        }
    });
    a = d;
    return a
},
["/static/common/lib/tangram/base/base.js"]);
F.module("/static/common/ui/dialog/dialog.js",
function(e, b) {
    var d = e("/static/common/lib/tangram/base/base.js"),
    c = e("/static/common/ui/event/event.js"),
    a = e("/static/common/lib/magic/Dialog/Dialog.js"),
    f = e("/static/common/lib/magic/control/Dialog/Dialog.js");
    e("/static/common/lib/magic/control/Dialog/$mask/$mask.js");
    e("/static/common/lib/magic/control/Dialog/$button/$button.js");
    b = function(j) {
        var h = function(n, m) {
            var o = '<a href="#" onclick="return false;" class="btn #{btnClass}"><em><b>#{text}</b></em></a>';
            d(d.string(o).format(n)).appendTo(m);
            return d(m).children().get(0)
        };
        var g = "btn-32-green";
        var i = d.extend({
            autoRender: true,
            zIndex: 100000,
            mask: {
                enable: true,
                opacity: 0.25
            }
        },
        j);
        var l = {
            items: [{
                text: "\u786e\u5b9a",
                click: function() {
                    if (i.onaccept) {
                        if (!i.onaccept.apply(this, arguments)) {
                            return
                        }
                    }
                    c.fire("dialog.close")
                }
            }],
            align: "center",
            enable: true
        };
        if (i.type == "alert") {
            i.buttons = i.buttons || l
        }
        if (i.type == "confirm") {
            l.items.push({
                text: "\u53d6\u6d88",
                click: function() {
                    if (i.oncancel) {
                        if (!i.oncancel.apply(this, arguments)) {
                            return
                        }
                    }
                    c.fire("dialog.close")
                }
            });
            i.buttons = i.buttons || l
        }
        if (i.buttons) {
            d.array(i.buttons.items).each(function(m, n) {
                n.builder = n.builder || h;
                n.btnClass = n.btnClass || g
            })
        }
        var k = new a(i);
        k.center();
        if (k._options.autoDispose) {
            k.on("hide",
            function(m) {
                d(k.getElement()).add(k._mask.getElement()).remove()
            })
        }
        if (k._options.autoRender) {
            k.render()
        }
        c.on("dialog.close",
        function(m) {
            if (!k.disposed && k.isShowing()) {
                k.hide()
            }
        });
        return k
    };
    b.alert = function(h, g) {
        return new b(d.extend({
            type: "alert",
            width: 350,
            height: 160,
            titleText: "\u77e5\u9053\u63d0\u793a",
            content: h,
            autoDispose: true
        },
        g || {}))
    };
    return b
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/event/event.js", "/static/common/lib/magic/Dialog/Dialog.js", "/static/common/lib/magic/control/Dialog/Dialog.js", "/static/common/lib/magic/control/Dialog/$mask/$mask.js", "/static/common/lib/magic/control/Dialog/$button/$button.js"]);
F.module("/static/common/ui/event/event.js",
function(d, a) {
    var c = d("/static/common/lib/tangram/base/base.js");
    var b = c.createSingle();
    b.un = b.off;
    a = F.ec = b;
    return a
},
["/static/common/lib/tangram/base/base.js"]);
F.module("/static/common/ui/form/form.js",
function(c, a) {
    var b = c("/static/common/lib/tangram/base/base.js");
    a = b.createClass(function(d) {
        var e = this;
        e.id = e.name = "form-" + e.guid;
        e.instance = b("<form></form>").attr({
            name: e.name,
            id: e.id,
            method: "get",
            action: "/submit"
        }).appendTo(document.body);
        b.forEach(d,
        function(g, f) {
            if (b.isString(g)) {
                e.instance.attr(f, g)
            } else {
                if (b.isFunction(g)) {
                    e.on(f, g)
                } else {
                    if (b.isObject(g) && f == "input") {
                        b.forEach(g,
                        function(i, h) {
                            b('<input type="hidden" name="' + h + '" />').val(i).appendTo(e.instance)
                        })
                    }
                }
            }
        })
    }).extend({
        get: function() {
            return this.instance
        },
        dispose: function() {
            this.instance.remove()
        },
        submit: function() {
            if (this.fire("onsubmit")) {
                this.instance.submit()
            }
            return this
        }
    });
    return a
},
["/static/common/lib/tangram/base/base.js"]);
F.module("/static/common/ui/hi/hi.js",
function(e, c) {
    var d = e("/static/common/lib/tangram/base/base.js");
    var g = e("/static/common/ui/form/form.js");
    function b() {
        var i = "";
        try {
            i = new ActiveXObject("WebDetect.Detect").GetVersion()
        } catch(j) {}
        try {
            if (typeof(navigator.mimeTypes["application/x-baiduhi"]) == "object") {
                i = ".*"
            }
        } catch(j) {}
        return i
    }
    function h(j) {
        var i = new Date(),
        k = i.getTime();
        i.setTime(k + 30 * 1000);
        document.cookie = "IM_add=" + escape(j + "|zhidao.baidu.com|" + (new Date().getTime()).toString(36)) + ";domain=baidu.com;path=/;expires=" + i.toGMTString();
        h.f = h.f || new g({
            action: "http://web.im.baidu.com",
            target: "baidu_webim",
            name: "__IM_REDIRECT_FORM"
        });
        h.f.submit()
    }
    function f(j) {
        var i = [];
        for (prop in j) {
            if (prop != "onim" && prop != "onwebim") {
                i.push(prop + "=" + j[prop])
            }
        }
        return (i.length > 0 ? "&" + i.join("&") : "")
    }
    function a(i, l, j, k) {
        d.sio("http://im.baidu.com/nop?type=" + i + "&sid=" + l + "&id=" + j + f(k) + "&t=" + new Date().getTime()).callByBrowser()
    }
    window.startBaiduHi = function(k, o, m, n) {
        a(k, o, m, n);
        var j = b(),
        l = d("#__IM_REDIRECT_IFRAME");
        if (j == "") {
            if (/active|c2cmsg|message|addcontact|addgroup|creategroup/i.test(k)) {
                h(m);
                if (n && n.onwebim) {
                    n.onwebim()
                }
            }
            return false
        }
        if (! (new RegExp(j.replace(/(\.)/g, "\\."), "i").test(k))) {
            return false
        }
        var i = "baidu://" + k + "/?sid=" + o + "&id=" + m + f(n);
        if (d.browser.ie) {
            i += "&browser=IE"
        } else {
            if (d.browser.firefox) {
                i += "&browser=FF&promo=c2cmsg|message|addgroup|creategroup|addcontact"
            }
        }
        if (n && n.onim) {
            n.onim()
        }
        if (!l.get(0)) {
            l = d("<iframe/>").hide().attr({
                id: "__IM_REDIRECT_IFRAME"
            }).appendTo(document.body)
        }
        l.attr("src", i)
    };
    return c
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/form/form.js"]);
F.module("/static/common/ui/log/log.js",
function(e, b) {
    var d = e("/static/common/lib/tangram/base/base.js");
    e("/static/common/ui/baidu/baidu.js");
    var c = e("/static/common/ui/event/event.js");
    var f = {};
    function a(h) {
        var i = h.split(","),
        g = {};
        d.forEach(i,
        function(l, j) {
            var k = l.split(":");
            g[k[0]] = k[1]
        });
        return g
    }
    c.on("log.init",
    function(i) {
        var h = d.extend({
            query: "a",
            evtType: "click"
        },
        i);
        var g = d(h.query);
        delete h.query;
        g.filter("[log]").on(h.evtType,
        function(k) {
            var j = d(this),
            l = a(j.attr("log"));
            if (j[0].tagName.match(/^a$/i) && !l.url) {
                l.url = j.attr("href")
            }
            l = d.extend(d.extend({},
            h), l);
            b.send(l)
        })
    });
    c.on("log.addKey",
    function(g) {
        b.addKey(g);
        c.fire("log.keyAdded")
    });
    b.send = function(j, h) {
        var g = "http://nsclick.baidu.com/v.gif?";
        var i = {
            pid: 102,
            url: location.href
        };
        d.extend(i, f.global || {});
        d.extend(i, f[j.action] || {});
        var k = d.extend(i, j);
        k.type = d.isNumber(k.type) ? k.type: k.key;
        d.array(["currentTarget", "returnValue", "target", "key", "preventDefault"]).each(function(l, m) {
            delete k[m]
        });
        if (h && f.pv) {
            d.extend(k, f.pv)
        }
        g += d.url.jsonToQuery(k, encodeURIComponent);
        d.sio(g).log();
        return g
    };
    b.addPvKey = function(g) {
        b.addKey(g, {
            action: "pv"
        })
    };
    b.stat = function(g) {
        d.sio("/stat?" + g).log()
    };
    b.parseLog = a;
    b.addKey = function(i, h) {
        var g = d.extend({
            append: false,
            action: "global",
            separator: ","
        },
        h || {});
        f[g.action] = f[g.action] || {};
        d.forEach(i,
        function(k, j) {
            if (g.append && f[g.action][j]) {
                f[g.action][j] += g.separator + k
            } else {
                f[g.action][j] = k
            }
        })
    };
    b.init = function(i) {
        var g = d.extend({
            query: "",
            action: "click",
            target: "a"
        },
        i || {});
        if (!g.query) {
            return
        }
        var h = g.query;
        delete g.query;
        d(h).delegate(g.target, g.action,
        function(k) {
            var j = d(this);
            if (j.data("log") || j.attr("log")) {
                var l = a(j.data("log") || j.attr("log"));
                if (this.tagName.match(/^a$/i) && !l.url) {
                    l.url = j.attr("href")
                }
                l = d.extend(d.extend({
                    evtType: g.action
                },
                g), l);
                b.send(l)
            }
        })
    };
    return b
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/baidu/baidu.js", "/static/common/ui/event/event.js"]);
F.module("/static/common/ui/login/login.js",
function(d, h) {
    var g = d("/static/common/lib/tangram/base/base.js");
    var j = d("/static/common/ui/event/event.js");
    var k = d("/static/common/ui/dialog/dialog.js");
    var m = d("/static/common/ui/uri/uri.js");
    var o = null,
    n = false,
    a = new Date(),
    l = "http://passport.bdimg.com/passApi/js/uni_login_wrapper.js?cdnversion=" + a.getFullYear() + a.getMonth() + a.getDate() + a.getHours() + a.getMinutes(),
    c = "/api/loginInfo";
    function e(q, p, r) {
        window.location.reload(true)
    }
    function i() {
        j.fire("login.log")
    }
    function b(p, q) {}
    var f = {
        registerLink: "http://zhidao.baidu.com/misc/more/userreg?oldurl=" + escape(top.location.href),
        onLoginSuccess: e,
        onLoginFailure: i,
        onSubmitedErr: b,
        cache: true,
        tangram: true,
        apiOpt: {
            product: "ik",
            charset: "GBK",
            u: window.top.location.href,
            staticPage: "http://zhidao.baidu.com" + m.v3Jump
        },
        authsite: ["tsina", "renren", "tqq", "fetion"],
        authsiteCfg: {
            tpl: "ik",
            display: "popup",
            u: window.top.location.href,
            jumpUrl: "http://zhidao.baidu.com" + m.xd,
            onBindSuccess: function(r, p) {
                if (p && p.isFirstBind) {
                    j.fire("dialog.close");
                    var q = new k({
                        contentType: "frame",
                        content: m.bindok + "?" + p.osType,
                        titleText: "\u767e\u5ea6\u77e5\u9053\u4e0e\u5408\u4f5c\u7f51\u7ad9\u7684\u540c\u6b65\u8bbe\u7f6e",
                        width: 450,
                        height: 215
                    })
                } else {
                    f.onLoginSuccess()
                }
                return false
            },
            onBindFailure: function() {
                f.onSubmitedErr();
                return false
            }
        },
        onshow: function() {}
    };
    j.on("login.log",
    function(q) {
        var p = q && g.isFunction(q.onLoginSuccess) ? q.onLoginSuccess: f.onLoginSuccess;
        if (q.sms) {
            g.object.extend(f.apiOpt, {
                sms: q.sms,
                smsText: "\u65e0\u9700\u767e\u5ea6\u5e10\u53f7\uff0c\u8f93\u5165\u624b\u673a\u53f7\u5373\u53ef\u514d\u8d39\u63d0\u95ee"
            });
            f.authsite = []
        }
        f.onLoginSuccess = function(r) {
            j.fire("dialog.close");
            j.fire("login.check", {
                sync: q.sync,
                isLogin: function(s) {
                    if (s.isFilter) {
                        j.fire("login.filter", {
                            type: "set",
                            filterInfo: s.isFilter
                        })
                    }
                    p(s)
                },
                noLogin: function() {}
            });
            r.returnValue = false
        };
        if (!n) {
            g.sio(l).callByBrowser(function() {
                o = passport.pop.init(f);
                o.show();
                g.extend(h, o)
            });
            n = true
        } else {
            if (o) {
                o.show()
            }
        }
    });
    j.on("login._success",
    function() {
        f.onLoginSuccess()
    });
    j.on("login.setUsername",
    function(p) {
        if (!p.onSetSuccess) {
            p.onSetSuccess = function() {
                window.location.reload(true)
            }
        }
        f.onLoginSuccess = p.onSetSuccess;
        var r = "?" + (p.patch ? p.patch + "&": "") + "t=" + (new Date()).getTime();
        function q() {
            var s = new k({
                contentType: "frame",
                content: m.username + r,
                titleText: p.titleText || "\u4f60\u8fd8\u6ca1\u6709\u7528\u6237\u540d\uff0c\u8d77\u4e00\u4e2a\u597d\u542c\u7684\u7528\u6237\u540d\u5427\uff01",
                width: 430,
                height: 170,
                autoDisplose: true
            });
            j.on("setusername.update",
            function(u, t) {
                s && s.setSize({
                    width: t.width,
                    height: t.height
                });
                g(s.getElement("content")).css("height", g(s.getElement("body")).css("height"))
            })
        }
        j.fire("login.check", {
            isLogin: function() {
                var s = F.context("user") || {};
                if (s.isNoUserName) {
                    q()
                } else {
                    p.onSetSuccess()
                }
            },
            noLogin: function() {
                j.fire("login.log", {
                    onLoginSuccess: q
                })
            }
        })
    });
    j.on("login.check",
    function(p) {
        p = p || {};
        f.onLoginSuccess = p.isLogin || e;
        f.onLoginFailure = p.noLogin || i;
        g.ajax({
            url: c + "?t=" + (new Date()).getTime(),
            async: p.sync ? false: true,
            success: function(t, r, v) {
                var s = F.context("user") || {},
                q = g.json.parse(v.responseText);
                if (q.isLogin == 1) {
                    s.isLogin = true;
                    s.id = q.userId;
                    s.wealth = q.userWealth;
                    f.onLoginSuccess(q)
                } else {
                    s.isLogin = false;
                    f.onLoginFailure()
                }
                return true
            }
        })
    });
    j.on("login.filter",
    function(q) {
        if (q.type == "set") {
            g.cookie.set("IK_USER_FILTER", q.filterInfo.reason, {
                path: "/",
                expires: 60000
            });
            g.cookie.set("IK_USER_FILTERI", q.filterInfo.lastLoginIp, {
                path: "/",
                expires: 60000
            });
            g.cookie.set("IK_USER_FILTERT", q.filterInfo.lastLoginTime, {
                path: "/",
                expires: 60000
            })
        } else {
            if (q.type == "check" && parseInt(g.cookie.get("IK_USER_FILTER")) == 16) {
                var p = new k({
                    width: 350,
                    height: 200,
                    titleText: "\u77e5\u9053\u63d0\u793a",
                    content: "\u60a8\u7684\u8d26\u53f7\u4e8e " + g.cookie.get("IK_USER_FILTERT") + " \u5728 " + g.cookie.get("IK_USER_FILTERI") + " \u8fdb\u884c\u4e86\u5f02\u5e38\u64cd\u4f5c\uff0c\u9ad8\u5ea6\u7591\u4f3c\u88ab\u76d7\uff0c\u6240\u4ee5\u5df2\u88ab\u4e34\u65f6\u51bb\u7ed3\uff0c\u8bf7\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\u5b8c\u6210\u89e3\u51bb\u64cd\u4f5c\uff0c\u6210\u529f\u540e\u5373\u53ef\u6062\u590d\u6b63\u5e38\u4f7f\u7528",
                    buttons: {
                        items: [{
                            text: "\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1",
                            click: function() {
                                window.open("/uhome/set/verify?fr=login");
                                p.hide()
                            }
                        },
                        {
                            text: "\u53d6\u6d88",
                            click: function() {
                                p.hide()
                            }
                        }],
                        align: "center",
                        enable: true
                    },
                    autoDispose: true
                });
                g.cookie.remove("IK_USER_FILTER", {
                    path: "/"
                });
                g.cookie.remove("IK_USER_FILTERI", {
                    path: "/"
                });
                g.cookie.remove("IK_USER_FILTERT", {
                    path: "/"
                })
            }
        }
    });
    j.on("dialog.close",
    function() {
        if (o && o.hide) {
            o.hide()
        }
    });
    j.on("login.success",
    function() {
        e()
    }); (function() {
        j.fire("login.filter", {
            type: "check"
        })
    })();
    return h
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/event/event.js", "/static/common/ui/dialog/dialog.js", "/static/common/ui/uri/uri.js"]);
F.module("/static/common/ui/msg/msg.js",
function(m, G) {
    var e = m("/static/common/lib/tangram/base/base.js");
    var o = m("/static/common/ui/store/store.js");
    var i = m("/static/common/ui/log/log.js");
    var h = m("/static/common/ui/event/event.js");
    var g = m("/static/common/ui/dialog/dialog.js");
    var B = m("/static/common/ui/tip/tip.js");
    m("/static/common/ui/tip/move/move.js");
    var a = "http://msg.zhidao.baidu.com/",
    t = "/s/toutu/promotion.js",
    C = (new Date()).getTime(),
    y = 180,
    p = 0,
    s = 3,
    q = false,
    u = null,
    k = null,
    E = null,
    w = (F.context("user").isLogin != 0),
    l = "/question/{$qid}.html",
    j = "/uhome/msg/",
    x = "/uhome",
    r = "/s/history/",
    f = document.title;
    var D = {
        "1001": {
            title: "{$n}\u4e2a\u63d0\u95ee\u6709\u65b0\u56de\u7b54",
            url1: j + "newreply?fr=msg",
            url2: j + "newreply?fr=msg"
        },
        "1003": {
            title: "{$n}\u4e2a\u5165\u56e2\u7533\u8bf7",
            url1: "/team/view/{$tname}#manage-3",
            url2: "/team/view/{$tname}#manage-3"
        },
        "1006": {
            title: "{$n}\u4e2a\u56de\u7b54\u6709\u65b0\u8ffd\u95ee",
            url1: j + "replyask?fr=msg",
            url2: j + "replyask?fr=msg"
        },
        "1010": {
            title: "{$n}\u4e2a\u63d0\u95ee\u5f97\u5230\u8865\u5145",
            url1: j + "questionsup?fr=msg",
            url2: j + "questionsup?fr=msg"
        },
        "1011": {
            title: "{$n}\u4e2a\u63d0\u95ee\u6025\u5f85\u5904\u7406",
            url1: j + "waitdeal?fr=msg",
            url2: j + "waitdeal?fr=msg"
        },
        "1009": {
            title: "{$n}\u4e2a\u56de\u7b54\u88ab\u91c7\u7eb3",
            url1: j + "event?fr=msg",
            url2: j + "event?fr=msg"
        },
        "10091": {
            title: "{$n}\u4e2a\u56de\u7b54\u83b7\u5f97\u597d\u8bc4",
            url1: j + "event?fr=msg",
            url2: j + "event?fr=msg"
        },
        "10092": {
            title: "{$n}\u4e2a\u56de\u7b54\u83b7\u5f97\u4e2d\u8bc4",
            url1: j + "event?fr=msg",
            url2: j + "event?fr=msg"
        },
        "1018": {
            title: "{$n}\u4e2a\u56de\u7b54\u88ab\u63a8\u8350",
            url1: j + "event?fr=msg",
            url2: j + "event?fr=msg"
        },
        "1008": {
            title: "{$n}\u4e2a\u56de\u7b54\u8d5e\u540c",
            url1: j + "evaluate?type=to&fr=msg",
            url2: j + "evaluate?type=to&fr=msg"
        },
        "1002": {
            title: "{$n}\u4f4d\u77e5\u53cb\u5411\u60a8\u6c42\u52a9",
            url1: x + "?type=help&fr=msg",
            url2: x + "?type=help&fr=msg"
        },
        "1005": {
            title: "{$n}\u4e2a\u56e2\u961f\u6c42\u52a9",
            url1: "/team",
            url2: "/team/view/{$tname}#question-3"
        },
        "1012": {
            title: "{$n}\u4e2a\u65b0\u52a8\u6001",
            url1: j + "event?fr=msg",
            url2: j + "event?fr=msg"
        },
        "1019": {
            title: "{$n}\u4e2a\u65b0\u901a\u77e5",
            url1: j + "sysmsg?fr=msg",
            url2: j + "sysmsg?fr=msg"
        },
        "1020": {
            title: "{$n}\u4e2a\u56de\u7b54\u88ab\u63a8\u8350\u4e3a\u4f18\u8d28",
            url1: j + "event?fr=msg",
            url2: j + "event?fr=msg"
        }
    };
    var d = {
        cookieName: "IK_MSG_POPUP",
        getCms: function() {
            e.ajax({
                url: t,
                dataType: "json",
                success: function(H) {
                    if (H) {
                        d.show(H, "cms")
                    }
                }
            })
        },
        setCookie: function(H) {
            e.cookie.set(d.cookieName, H.id, {
                expires: e.date.parse(H.endTime).getTime(),
                path: "/"
            })
        },
        generateView: function(I) {
            var H = [];
            I.linkText = I.linkText || "\u8fdb\u5165\u4e13\u9898";
            H.push('<a target="_blank"  href="' + I.linkUrl + '"><img class="task-guide-image" src="' + I.imageUrl + '" /></a>');
            H.push('<span class="task-guide-title">' + I.titleText + "</span>");
            H.push('<div class="task-guide-text">' + I.contextText + "</div>");
            H.push('<div class="task-guide-link"><a target="_blank" href="' + I.linkUrl + '">' + I.linkText + "</a></div>");
            return H.join("")
        },
        show: function(J, I) {
            var H = I || "msg";
            if (H == "msg") {
                J = e.array(J).find(d.Validate);
                if (!J) {
                    return
                } else {
                    G.del({
                        type: "2040"
                    },
                    false)
                }
            } else {
                if (H == "cms") {
                    if (!d.Validate(J)) {
                        return
                    }
                }
            }
            k = new B({
                width: "240",
                skin: "task-guide",
                direction: "up",
                arrow: false,
                radius: false,
                closebox: true,
                content: d.generateView(J),
                effect: "move",
                onshow: function() {},
                onclose: function() {
                    if (H == "cms") {
                        d.setCookie(J)
                    }
                },
                onhide: function() {
                    if (H == "cms") {
                        d.setCookie(J)
                    }
                }
            });
            k.setPosition = function() {
                var K = this.getTipContainer();
                e(K).removeClass("ik-tip").css({
                    right: 3,
                    bottom: 3,
                    left: "",
                    overflow: ""
                }).find("a.tip-close").empty()
            };
            k.show();
            i.send({
                type: 2031,
                page: "bubble",
                action: "pv"
            });
            e(k.getTipContainer()).delegate("a", "click",
            function(K) {
                k.hide();
                if (K.target.nodeName.toLowerCase() == "img") {
                    i.send({
                        type: 2031,
                        page: "bubble",
                        pos: "bubble-img"
                    })
                } else {
                    if (e(K.target).hasClass("tip-close")) {
                        i.send({
                            type: 2031,
                            page: "bubble",
                            pos: "bubble-close"
                        })
                    } else {
                        i.send({
                            type: 2031,
                            page: "bubble",
                            pos: "bubble-link"
                        })
                    }
                }
            })
        },
        Validate: function(J) {
            var H = e.date.parse(J.startTime),
            K = e.date.parse(J.endTime),
            I = e.cookie.get(d.cookieName);
            if (J.enabled == 1 && I != J.id && (new Date()).getTime() >= H.getTime() && (new Date()).getTime() < K.getTime()) {
                return true
            }
            return false
        }
    };
    var n = {
        getServerData: function(I) {
            var H = a + "api?source=iknow&t=" + (new Date()).getTime();
            H += "&cu=" + encodeURIComponent(F.context("user").name);
            if (I && I.fr) {
                H += "&" + e.url.jsonToQuery(I)
            }
            e.sio(H).callByServer(function(J) {
                G.refresh(J)
            })
        },
        delServerData: function(I) {
            var H = a + "close_notice?t=" + (new Date()).getTime();
            H += "&" + e.url.jsonToQuery(I);
            e.sio(H).callByBrowser()
        },
        setLocalData: function(H) {
            o.set("ikmsg_time", (new Date()).getTime());
            o.set("ikmsg_data", e.json.stringify(H))
        },
        getLocalData: function() {
            return {
                time: o.get("ikmsg_time") || 0,
                data: e.json.parse(o.get("ikmsg_data") || "null")
            }
        },
        delLocalData: function(J) {
            var H = [];
            var K = this.getLocalData();
            if (K && (K = K.data)) {
                if (K.actList) {
                    for (var I = 0; I < K.actList.length; I++) {
                        if (K.actList[I].type == J.type) {
                            H = K.actList.splice(I, 1);
                            break
                        }
                    }
                }
                if (K.globalList && K.globalList.type == J.type) {
                    K.globalList.data = null
                }
            }
            G.refresh(K);
            return H
        },
        clearLocalData: function() {
            o.remove("ikmsg_data");
            o.remove("ikmsg_time");
            this.delServerData({
                type: "99999",
                count: 1
            })
        },
        _buildMsg: function(K) {
            var J = [];
            var H = "",
            I = "";
            H = ' alog-alias="' + K.type + '-title"';
            I = ' alog-action="' + K.type + '-close"';
            J.push('<a target="_blank" href="' + K.url + '"' + H + ' index="' + K.type + '"><i' + I + '></i><span id="notice-' + K.type + '">' + K.title + "</span></a>");
            return J
        },
        show: function(H) {
            this.generateView(H)
        },
        hideTip: function() {
            if (u) {
                e(u.getTipContainer()).hide()
            }
        },
        showTip: function() {
            if (u) {
                e(u.getTipContainer()).show()
            }
        },
        generateView: function(O) {
            var H = [],
            M = [],
            K = [];
            var L = this;
            var N = 0;
            e.forEach(O,
            function(S, R) {
                var Q = D[S.type];
                if (S.type == 1008 && S.create_time < (new Date()).getTime() / 1000 - 86400000) {
                    return
                }
                if (Q) {
                    var T = Q.title.replace("{$n}", '<span class="num">' + S.count + "</span>");
                    var P = (S.count > 1) ? (Q.url1) : (Q.url2.replace("{$qid}", S.qid).replace("{$aid}", S.aid));
                    if (S.type == "1005" || S.type == "1003") {
                        P = P.replace("{$tname}", S.tname)
                    }
                    S.url = P;
                    S.title = T;
                    S.index = R; (N < s) ? (H.push(n._buildMsg(S))) : (M.push(n._buildMsg(S)));
                    N++;
                    K.push(S.type)
                }
                h.fire("tip.callback", S)
            });
            if (H.length <= 0) {
                if (u) {
                    u.dispose();
                    u = null
                }
                return
            }
            i.send({
                type: 2031,
                pos: "msg-show",
                page: "msg",
                msgtype: K.join("|")
            });
            if (!u) {
                u = new B({
                    width: 182,
                    direction: "down",
                    target: "user-name",
                    closebox: true,
                    shadow: true,
                    skin: "nav-notice",
                    onclose: function() {
                        i.send({
                            type: 2031,
                            page: "msg",
                            pos: "msg-close"
                        });
                        n.clearLocalData();
                        this.dispose();
                        u = null
                    }
                });
                var J = u.getTipBody();
                e(J).click(function(S) {
                    var P = {};
                    var R = S.target.nodeName.toLowerCase();
                    if (R == "i") {
                        e.event.stopPropagation(S);
                        e.event.preventDefault(S);
                        P.pos = "msg-del"
                    } else {
                        P.pos = "msg-title"
                    }
                    var Q = e(S.target).closest("a").attr("index");
                    if (Q) {
                        P.actType = Q;
                        if (P) {
                            i.send(e.object.extend(P, {
                                type: 2031,
                                page: "msg"
                            }))
                        }
                        document.title = f;
                        G.del({
                            type: Q
                        })
                    }
                    if (Q == 1008 && R == "i") {
                        g.alert("\u662f\u5426\u4e0d\u518d\u663e\u793a\u88ab\u8d5e\u540c\u6d88\u606f\uff1f", {
                            type: "confirm",
                            onaccept: function() {
                                e.sio(a + "getuswitch?t=" + (new Date()).getTime()).callByServer(function(U) {
                                    var T = U.config || {};
                                    T[1008] = 0;
                                    e.sio(a + "uswitch?config=" + e.json.stringify(T)).callByServer(function() {})
                                });
                                h.fire("dialog.close")
                            }
                        })
                    }
                })
            }
            e(u.getTipContainer()).removeClass("ik-tip").find("a.tip-close").empty();
            var J = u.getTipBody();
            e(J).empty().append(H.join(""));
            L.generateMore(J, M.join(""));
            u.show();
            h.fire("tip.resize");
            var I = e(J).find("a").each(function(Q, R) {
                var S = (R.href + top.location.href).match(/uhome/ig);
                var P, T;
                if (S && S.length > 1) {
                    P = R.href;
                    T = P.substr(P.lastIndexOf("#"));
                    P = P.replace(/(&t=\d+)*#.+$/g, "") + "&t=" + (new Date()).getTime();
                    if (P.indexOf("?") == -1) {
                        P = P.replace(/&/, "?")
                    }
                    R.href = P + T;
                    R.target = "_top"
                } else {
                    R.target = "_blank"
                }
            })
        },
        generateMore: function(H, I) {
            if (e.string(I).trim() != "") {
                e(u.getTipContainer()).removeClass("nav-notice-small");
                e(H).append('<div id="more-notice-holder" style="display:none;">' + I + "</div>");
                if (q) {
                    e("#more-notice-holder").show()
                }
                if (!e("#more-control-div").size()) {
                    e(H).after('<div id="more-control-div"><a href="###" id="more-control-a" class="open"></a></div>');
                    e("#more-control-div").click(function(K) {
                        e.event.preventDefault(K);
                        var J = e(this).find("a").first();
                        if (J.hasClass("open")) {
                            e.fx.expand("more-notice-holder", {
                                duration: 150,
                                onafterfinish: function() {
                                    e(J).removeClass("open").addClass("close");
                                    q = true;
                                    i.send({
                                        type: 2031,
                                        page: "msg",
                                        pos: "msg-expand"
                                    })
                                }
                            })
                        } else {
                            if (J.hasClass("close")) {
                                e.fx.collapse("more-notice-holder", {
                                    duration: 150,
                                    onafterfinish: function() {
                                        e(J).removeClass("close").addClass("open");
                                        q = false;
                                        i.send({
                                            type: 2031,
                                            page: "msg",
                                            pos: "msg-collapse"
                                        })
                                    }
                                })
                            }
                        }
                    })
                }
            } else {
                e("#more-control-div").remove();
                e("#more-notice-holder").remove();
                q = false;
                e(u.getTipContainer()).addClass("nav-notice-small")
            }
        }
    };
    function A(K) {
        if (!w) {
            return
        }
        var L = (C + y * 1000 < (new Date()).getTime()) ? true: false;
        var J = true;
        var H;
        var I = n.getLocalData();
        if (I && I.data) {
            if (I.data.interval) {
                H = I.data.interval
            }
            if (I.time && (L || p || I.time > (new Date()).getTime() - H * 1000)) {
                v(I.data);
                J = false
            }
        }
        if (J) {
            n.getServerData()
        }
        if (!K && H) {
            clearTimeout(E);
            E = setTimeout(A, H * 1000)
        }
    }
    function c(L, K) {
        var I = K || true;
        var H = n.delLocalData(L);
        if (I && H.length > 0) {
            var J = {
                type: (H[0].type == 10091 || H[0].type == 10092) ? 1009 : H[0].type,
                id: H[0].id,
                count: H[0].count
            };
            n.delServerData(J)
        }
    }
    function v(H) {
        if (!H || H.status != 0) {
            return
        }
        if (H.globalList && H.globalList.type == "2040" && H.globalList.data) {
            d.show(H.globalList.data)
        }
        if (H.actList && e.lang.isArray(H.actList)) {
            n.show(H.actList)
        } else {
            document.title = f
        }
    }
    h.on("pop.resize",
    function() {
        if (k) {
            var I = k.getTipContainer();
            if (e.browser.ie && e.browser.ie < 7) {
                var J = (document.documentElement.clientHeight + document.documentElement.scrollTop);
                var H = e(I).outerHeight();
                J = (J - H - 3) + "px";
                e(I).css({
                    top: J,
                    right: "5px",
                    position: "absolute",
                    overflow: ""
                })
            } else {
                e(I).css({
                    bottom: "3px",
                    right: "3px",
                    position: "fixed",
                    overflow: ""
                })
            }
        }
    });
    h.on("tip.resize",
    function() {
        if (u) {
            var I = e("#user-name");
            var H = u.getTipContainer();
            var J = e(H).find(".tip-arrow");
            if (! (I && H) || b) {
                return false
            }
            var L = e(I).offset();
            var K = e.page.getScrollTop();
            if (K > L.top + 27) {
                if (e.browser.ie && e.browser.ie < 7) {
                    e(H).css({
                        left: L.left + "px",
                        top: (K + 1) + "px"
                    })
                } else {
                    e(H).css({
                        left: L.left + "px",
                        top: "1px",
                        position: "fixed"
                    })
                }
                e(J).hide()
            } else {
                L.top += 27;
                e(H).css({
                    left: L.left + "px",
                    top: L.top + "px",
                    position: "absolute"
                });
                e(J).show()
            }
        }
    });
    h.on("tip.del",
    function(I, J, H) {
        c(J, H)
    });
    var b = false;
    h.on("userbar.show",
    function(H) {
        b = H.waiting;
        G.hide()
    });
    h.on("userbar.hide",
    function(H) {
        b = H.waiting;
        G.resize();
        G.show()
    });
    h.on("userbar.reposition",
    function(H) {
        b = H.waiting;
        G.resize();
        G.show()
    });
    function z(I) {
        if (e.isObject(I)) {
            e.object.extend(option, I)
        }
        e.on(window, "resize",
        function() {
            G.resize()
        });
        e.on(window, "scroll",
        function() {
            G.resize()
        });
        if (!w) {
            d.getCms();
            return
        }
        if (e("#userbar #user-name").size() == 0) {
            return
        }
        var K = {},
        H = location.pathname + location.search,
        J;
        if (J = H.match(/^\/question\/(\d+)/i)) {
            K.fr = "question";
            n.getServerData(K)
        } else {
            A()
        }
        e.on(document, "mousemove",
        function() {
            C = (new Date()).getTime()
        })
    }
    e.object.extend(G, {
        init: z,
        show: n.showTip,
        hide: n.hideTip,
        del: c,
        resize: function() {
            h.fire("tip.resize");
            h.fire("pop.resize")
        },
        force: function() {},
        refresh: function(H) {
            n.setLocalData(H);
            A()
        }
    });
    return G
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/store/store.js", "/static/common/ui/log/log.js", "/static/common/ui/event/event.js", "/static/common/ui/dialog/dialog.js", "/static/common/ui/tip/tip.js", "/static/common/ui/tip/move/move.js"]);
F.module("/static/common/ui/search-box/search-box.js",
function(a, e) {
    var c = a("/static/common/lib/tangram/base/base.js");
    var d = a("/static/common/ui/log/log.js");
    var j = a("/static/common/ui/event/event.js");
    var m = a("/static/common/ui/dialog/dialog.js");
    var g = a("/static/common/ui/form/form.js");
    var o = a("/static/common/ui/suggestion/suggestion.js");
    var f = a("/static/common/ui/util/util.js");
    var b = {
        lm: 0,
        rn: 10,
        pn: 0,
        fr: "search",
        ie: "gbk"
    },
    l = c("#kw"),
    p = F.context("page") ? F.context("page")["newRelated"] : "";
    evaSampling = F.context("page") ? F.context("page")["evaSampling"] : "";
    c("#search-form").submit(function(q) {
        d.send({
            type: 2014,
            pms: "newqb",
            action: "searchbtn",
            evaSamplingNewRelated: evaSampling,
            newRelated: p
        });
        e.search(l);
        q.preventDefault()
    });
    var i = c.json.parse(F.context("defaultQuery"));
    if (i) {
        new f.textboxPlaceHolder(l, i)
    }
    c("#ask-btn").click(function(q) {
        d.send({
            type: 2014,
            pms: "newqb",
            action: "askbtn"
        });
        e.ask(l);
        q.preventDefault()
    });
    c("#answer-btn").click(function(q) {
        d.send({
            type: 2014,
            pms: "newqb",
            action: "answerbtn"
        });
        e.answer(l)
    });
    l.focus(function(q) {
        if (!o.instance) {
            o.init("kw");
            o.instance.on("confirm",
            function(r) {
                c("#search-form").submit()
            });
            o.instance.on("highlight",
            function(r) {
                b.f = h.f = "sug";
                b.rsp = h.rsp = this.selectedIndex
            })
        }
    }).blur(function(q) {
        k(this)
    });
    j.fire("log.init", {
        key: 2012,
        query: "#search-box a"
    });
    e.search = function(r) {
        r = c(c.isString(r) ? "#" + r: r);
        var q = c.string(r.val()).trim();
        if (i) {
            q = (q == i.title ? i.value: q)
        }
        if (q == "") {
            j.fire("searchBox.buttonAction", {
                text: "\u8bf7\u8f93\u5165\u60a8\u8981\u641c\u7d22\u7684\u95ee\u9898",
                evtName: "searchAction",
                log: "btn=search",
                fr: "search_0"
            })
        } else {
            j.fire("searchBox.searchAction", {
                params: {
                    word: q
                },
                extParams: c.url.queryToJson(r.attr("extAttr"))
            })
        }
    };
    e.ask = function(s) {
        s = c(c.isString(s) ? "#" + s: s);
        var q = (i && (s.val() == i.title || s.val() == i.value)) ? "": s.val();
        var r = new g({
            method: "get",
            action: "/new",
            input: {
                word: q,
                ie: "GBK"
            }
        });
        setTimeout(function() {
            r.submit()
        },
        60)
    };
    e.answer = function(r) {
        r = c(c.isString(r) ? "#" + r: r);
        var q = c.string(r.val()).trim();
        if (q == "") {
            j.fire("searchBox.buttonAction", {
                text: "\u8bf7\u8f93\u5165\u5173\u952e\u8bcd\uff0c\u641c\u7d22\u60a8\u611f\u5174\u8da3\u7684\u95ee\u9898",
                textBottom: "\u671f\u5f85\u60a8\u7684\u56de\u7b54\uff01",
                evtName: "answerAction",
                log: "btn=answersearch",
                lm: 65536,
                fr: "answersearch_0"
            })
        } else {
            j.fire("searchBox.searchAction", {
                params: {
                    word: q,
                    lm: 65536,
                    fr: "answersearch"
                }
            })
        }
    };
    j.on("searchBox.buttonAction",
    function(s, r) {
        var q = '<div style="background: url(http://img.baidu.com/img/iknow/noteicon.gif) no-repeat scroll 0pt 0pt transparent; padding: 4px 0pt 8px 24px; margin-top:10px; font-size: 14px;">' + r.text + '\uff1a</div><input style="width: 300px; font-size: 16px; padding: 1px 0pt;" id="search-empty-input" type="text"/>';
        var t = new m({
            titleText: "\u77e5\u9053\u63d0\u793a",
            content: q,
            width: 370,
            height: 175,
            autoDispose: true,
            submitOnEnter: true,
            autoRender: false,
            buttons: {
                items: [{
                    text: "\u7ee7\u7eed\u641c\u7d22",
                    click: function() {
                        var u = c.string(c("#search-empty-input").val()).trim();
                        if (u != "") {
                            j.fire("searchBox.searchAction", {
                                params: {
                                    word: u,
                                    fr: r.fr,
                                    lm: r.lm || 0
                                }
                            })
                        }
                    }
                }],
                align: "left",
                enable: true
            }
        });
        t.on("load",
        function(v) {
            c("#search-empty-input").get(0).focus();
            c("#search-empty-input").keypress(function(w) {
                if (w.keyCode == 13) {
                    c(t.getElement()).find(".btn").click()
                }
            });
            var u = c("<span/>").html(r.textBottom || "").css({
                "padding-left": "10px",
                "font-size": "12px"
            });
            c(this.getElement("footerContainer")).append(u)
        });
        t.render()
    });
    var h = {};
    j.on("searchBox.addLog",
    function(r, q) {
        c.extend(h, q)
    });
    j.on("searchBox.searchAction",
    function(t, s) {
        var q = {};
        c.extend(q, b);
        c.extend(q, s.params);
        c.extend(q, s.extParams || c.url.queryToJson(l.attr("extAttr")));
        d.send(c.extend({
            type: 2057,
            fr: n(),
            word: s && s.params && s.params["word"] ? s.params["word"] : ""
        },
        h));
        h = {};
        var r = new g({
            method: "get",
            action: "/search",
            input: q
        });
        setTimeout(function() {
            r.submit()
        },
        60)
    });
    function n() {
        var r = location.pathname,
        q = r == "/" ? "home": r.match(/\w+/)[0];
        if (new RegExp("\\|" + q + "\\|").test("|search|question|home|browse|")) {
            return q
        } else {
            return "other"
        }
    }
    function k(s) {
        var r = {
            "http://news.baidu.com/": {
                query: "ns?cl=2&rn=20&tn=news&t=1&word=#{0}"
            },
            "http://www.baidu.com/": {
                query: "s?cl=3&wd=#{0}"
            },
            "http://tieba.baidu.com/": {
                query: "f?kw=#{0}&t=4"
            },
            "http://music.baidu.com/": {
                query: "search?fr=zhidao&key=#{0}"
            },
            "http://image.baidu.com/": {
                query: "i?tn=baiduimage&ct=201326592&lm=-1&cl=2&word=#{0}&t=3"
            },
            "http://v.baidu.com/": {
                query: "v?ct=301989888&rn=20&pn=0&db=0&s=22&word=#{0}"
            },
            "http://map.baidu.com/": {
                query: "m?word=#{0}&fr=map007",
                encode: true
            },
            "http://baike.baidu.com/": {
                query: "searchword/?word=#{0}&pic=1"
            },
            "http://wenku.baidu.com/": {
                query: "search?word=#{0}&lm=0&od=0"
            },
            "http://jingyan.baidu.com/": {
                query: "search?word=#{0}&fr=zhidao",
                encode: true
            }
        };
        var q = f.trim(s);
        c(".search-box .channel a").each(function() {
            var t = "http://" + this.hostname + "/";
            if (q != "") {
                if (r[t]) {
                    var v = r[t];
                    var u = v.encode ? encodeURIComponent(q) : q;
                    this.href = t + c.string(v.query).format([u])
                }
            } else {
                this.href = t
            }
        })
    }
    return e
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/log/log.js", "/static/common/ui/event/event.js", "/static/common/ui/dialog/dialog.js", "/static/common/ui/form/form.js", "/static/common/ui/suggestion/suggestion.js", "/static/common/ui/util/util.js"]);
F.module("/static/common/ui/set-care-field/set-care-field.js",
function(require, exports) {
    var T = require("/static/common/lib/tangram/base/base.js");
    require("/static/common/ui/baidu/baidu.js");
    var Dialog = require("/static/common/ui/dialog/dialog.js");
    var Category = require("/static/common/ui/category/category.js");
    var ec = require("/static/common/ui/event/event.js");
    var login = require("/static/common/ui/login/login.js");
    var SetCareField = T.createClass(function() {
        var defaultOptions = {
            _maxKeywordNum: 20,
            _maxKeywordLength: 20,
            _maxCidNum: 5,
            selectSize: 7,
            expand: "all",
            defaultKeyword: "",
            defaultCid: "",
            onclose: function(data) {
                if (me.tag) {
                    window.location.reload(true)
                }
            }
        };
        var options = {};
        var me = this;
        var _dialog;
        me.tag = false;
        var msg = {
            key: {
                noWord: "\u8bf7\u8f93\u5165\u60a8\u7684\u5173\u952e\u8bcd\uff01",
                tooLong: "\u4f60\u8f93\u5165\u7684\u5173\u952e\u8bcd\u592a\u957f\u5566\uff0c\u91cd\u65b0\u68c0\u67e5\u4e0b\u5427\uff01",
                exist: "\u4f60\u8f93\u5165\u7684\u5173\u952e\u8bcd\u5df2\u7ecf\u6dfb\u52a0\u8fc7\u4e86\uff0c\u4e0d\u8981\u91cd\u590d\u6dfb\u52a0\u54e6\uff01",
                wordTip: "\u60a8\u53ef\u4ee5\u8bbe\u5b9a <b>" + defaultOptions._maxKeywordNum + '</b> \u7ec4\u5173\u952e\u8bcd\uff0c\u82e5\u4e00\u7ec4\u4e2d\u5305\u542b\u591a\u4e2a\u5173\u952e\u8bcd\uff0c\u8bf7\u7528\u7a7a\u683c\u5206\u9694\uff0c\u4f8b\u5982"\u7231\u597d \u8db3\u7403"',
                enough: "\u4f60\u5173\u6ce8\u7684\u5173\u952e\u8bcd\u4e2a\u6570\u5df2\u8fbe\u5230\u4e0a\u9650\uff0c\u8bf7\u5220\u9664\u540e\u518d\u505a\u6dfb\u52a0\uff01",
                error: "\u5f88\u62b1\u6b49\u6ca1\u64cd\u4f5c\u6210\u529f\uff0c\u518d\u8bd5\u8bd5\u770b\u5427\uff01"
            },
            cat: {
                noCid: "\u8bf7\u70b9\u51fb\u9009\u62e9\u6846\uff0c\u9009\u62e9\u5206\u7c7b\uff01",
                exist: "\u4f60\u9009\u62e9\u7684\u5206\u7c7b\u5df2\u7ecf\u6dfb\u52a0\u8fc7\u4e86\uff0c\u4e0d\u8981\u91cd\u590d\u6dfb\u52a0\u54e6\uff01",
                addTip: "\u60a8\u53ef\u4ee5\u8bbe\u5b9a<b>" + defaultOptions._maxCidNum + "</b>\u4e2a\u5206\u7c7b\uff01",
                enough: "\u5173\u6ce8\u5206\u7c7b\u5df2\u6ee1\uff0c\u5220\u51cf\u540e\u53ef\u4ee5\u7ee7\u7eed\u6dfb\u52a0\uff5e",
                wordTip: "\u4f60\u8fd8\u6ca1\u6709\u6dfb\u52a0\u5206\u7c7b\uff0c\u70b9\u51fb\u6dfb\u52a0\u6309\u94ae\u6dfb\u52a0\u5427\uff01",
                error: "\u5f88\u62b1\u6b49\u6ca1\u64cd\u4f5c\u6210\u529f\uff0c\u518d\u8bd5\u8bd5\u770b\u5427\uff01"
            }
        };
        me._keywords = [];
        me._cids = [];
        me._recWords = [];
        me._wordSpan = new T.string('<a href="#" class="wordSpan" word="#{word}"><span>#{word}</span><i></i></a>');
        me._recWordSpan = new T.string('<a href="#" class="recWordSpan #{addTag}" recWord="#{recWord}"><span><span class="ad"></span>#{recWord}</span></a>');
        me._careSpan = new T.string('<a href="#" class="careSpan" cid="#{cid}"><span>#{text}</span><i></i></a>');
        function _resize() {
            _dialog.setSize({
                width: 520,
                height: (T("#setCareField-wrap").height() + 60)
            })
        }
        function _initHtml(keywords, categorys) {
            function parseCategorys() {
                var _html = "";
                me._cids = [];
                for (var i = 0; i < categorys.length; i++) {
                    me._cids.push(categorys[i]);
                    _html += me._careSpan.format({
                        cid: categorys[i][0],
                        text: categorys[i][1].split(",").reverse().join('<span class="split">></span>')
                    })
                }
                T("#careList").html(_html)
            }
            function parseKeywords() {
                var _html = "";
                me._keywords = [];
                for (var i = 0; i < keywords.length; i++) {
                    keywords[i] = keywords[i].replace(/&lt;/g, "<").replace(/&gt;/g, ">");
                    me._keywords.push(keywords[i]);
                    _html += me._wordSpan.format({
                        word: T.string(keywords[i]).encodeHTML()
                    })
                }
                T("#wordList").html(_html + '<div style="clear:both"></div>')
            }
            parseKeywords();
            parseCategorys();
            _checkKeyword();
            _checkCid();
            _initRecWord(me._recWords);
            _resize();
            _dialog.center();
            T("#addCareBtnAdd").css("top", (options.selectSize / 2 * 17 - 4) + "px");
            T("#addCareBtnDel").css("top", (options.selectSize / 2 * 17 - 4) + "px");
            T(".cate-splitor").css("top", "-" + (options.selectSize / 2 * 17 - 13) + "px")
        }
        function _initRecWord(data) {
            if (data) {
                var _html = "";
                for (var i = 0; i < data.length; i++) {
                    data[i] = data[i].replace(/&lt;/g, "<").replace(/&gt;/g, ">");
                    _html += me._recWordSpan.format({
                        recWord: data[i],
                        addTag: _checkRecIscared(data[i]) ? "added": "add"
                    })
                }
                T("#recWordsList").html(_html + '<div style="clear:both"></div>')
            }
        }
        function _Submit(keywords, cids, success, error) {
            if (!error) {
                error = function() {}
            }
            if (!success) {
                success = function() {}
            }
            var temp = [];
            for (var i = 0; i < cids.length; i++) {
                temp.push(cids[i][0])
            }
            var idStr = temp.join("_");
            var kwStr = "";
            for (var i = 0; i < keywords.length; i++) {
                var decode = T.string.decodeHTML(keywords[i]);
                kwStr += "&kw" + i + "=" + encodeURIComponent(decode)
            }
            if (keywords.length != 0) {
                kwStr += "&kwn=" + keywords.length
            }
            var url = "cm=100522&word=" + idStr + kwStr + "&stoken=" + F.context("user").stoken;
            T.ajax({
                url: "/submit/user",
                data: url,
                type: "POST",
                dataType: "text",
                success: function(data) {
                    if (data) {
                        var backData = eval("(" + data + ")");
                        if (backData.errorNo == "0") {
                            me._keywords = [];
                            for (var i = 0; i < keywords.length; i++) {
                                me._keywords.push(keywords[i])
                            }
                            me._cids = [];
                            for (var i = 0; i < cids.length; i++) {
                                me._cids.push(cids[i])
                            }
                            _checkKeyword();
                            _checkCid();
                            _initRecWord(me._recWords);
                            me.tag = true;
                            success()
                        } else {
                            error()
                        }
                    } else {
                        error()
                    }
                    _resize()
                },
                error: error
            })
        }
        function _checkRecIscared(rec) {
            for (var i = 0; i < me._keywords.length; i++) {
                if (me._keywords[i] == rec) {
                    return true
                }
            }
            return false
        }
        function _delKeyword($WordSpan) {
            tempKeywords = [];
            for (i = 0; i < me._keywords.length; i++) {
                if ($WordSpan.attr("word") != me._keywords[i]) {
                    tempKeywords.push(me._keywords[i])
                }
            }
            _Submit(tempKeywords, me._cids,
            function() {
                $WordSpan.remove();
                _resize()
            },
            function() {
                T("#addWordTip").html(msg.key.error).show();
                _resize()
            })
        }
        function _addKeyword(word) {
            if (! (word = T.string(word || "").trim())) {
                T("#addWordTip").html(msg.key.noWord).show();
                _resize();
                return
            }
            tempKeywords = [];
            for (i = 0; i < me._keywords.length; i++) {
                tempKeywords.push(me._keywords[i])
            }
            if (word) {
                word = word.replace(/&lt;/g, "<").replace(/&gt;/g, ">");
                if (_checkKeyword(word)) {
                    tempKeywords.push(word);
                    _Submit(tempKeywords, me._cids,
                    function() {
                        T(me._wordSpan.format({
                            word: T.string(word).encodeHTML()
                        })).insertBefore(T("#wordList div")[0]);
                        T("#wordInput").val("");
                        T("#wordInput").trigger("blur");
                        _resize()
                    },
                    function() {
                        T("#addWordTip").html(msg.key.error).show();
                        _resize()
                    })
                }
            }
        }
        function _delCid($CidSpan) {
            tempCids = [];
            for (i = 0; i < me._cids.length; i++) {
                if ($CidSpan.attr("cid") != me._cids[i][0]) {
                    tempCids.push(me._cids[i])
                }
            }
            _Submit(me._keywords, tempCids,
            function() {
                $CidSpan.remove();
                _resize()
            },
            function() {
                T("#addCareTip").html(msg.cat.error).show();
                _resize()
            })
        }
        function _addCid(cid) {
            tempCids = [];
            for (i = 0; i < me._cids.length; i++) {
                tempCids.push(me._cids[i])
            }
            if (cid) {
                if (_checkCid(cid[0])) {
                    tempCids.push(cid);
                    _Submit(me._keywords, tempCids,
                    function() {
                        var text = cid[1].split(",").reverse().join('<span class="split">></span>');
                        T(me._careSpan.format({
                            cid: cid[0],
                            text: text
                        })).appendTo("#careList");
                        T("#care-wrap-addBtn").hide();
                        T("#addCareBtn").show();
                        _resize()
                    },
                    function() {
                        T("#addCareTip").html(msg.cat.error).show();
                        _resize()
                    })
                }
            }
        }
        function _checkKeyword(word) {
            tag = true;
            if (word && word != "") {
                word = T.string(word).trim();
                if (word.length == 0 || word == "\u8f93\u5165\u60a8\u64c5\u957f\u7684\u5173\u952e\u8bcd") {
                    T("#addWordTip").html(msg.key.noWord).show();
                    tag = false
                } else {
                    if (T.string.getByteLength(word) > 20) {
                        T("#addWordTip").html(msg.key.tooLong).show();
                        tag = false
                    } else {
                        for (var i = 0; i < me._keywords.length; i++) {
                            if (me._keywords[i] == word) {
                                T("#addWordTip").html(msg.key.exist).show();
                                tag = false
                            }
                        }
                    }
                }
                if (me._keywords.length == 0) {
                    T("#wordList").html('<div style="clear:both"></div>')
                }
            } else {
                if (me._keywords.length >= defaultOptions._maxKeywordNum) {
                    T("#word-wrap-btn").hide();
                    T("#wordTip").html(msg.key.enough).show();
                    tag = false
                } else {
                    T("#word-wrap-btn").show();
                    T("#wordTip").html("").hide()
                }
                if (me._keywords.length == 0) {
                    T("#wordList-title").html("");
                    T("#wordList").html(msg.key.wordTip)
                } else {
                    T("#wordList-title").html("\u5df2\u6dfb\u52a0\u7684\u5173\u952e\u8bcd")
                }
                T("#addWordTip").html("").hide()
            }
            if (tag) {
                T("#addWordTip").html("").hide()
            }
            _resize();
            return tag
        }
        function _checkCid(cid) {
            tag = true;
            if (cid && cid != 0) {
                if (cid.length == 0) {
                    T("#addCareTip").html(msg.cat.noCid).show();
                    tag = false
                } else {
                    for (var i = 0; i < me._cids.length; i++) {
                        if (me._cids[i][0] == cid) {
                            T("#addCareTip").html(msg.cat.exist).show();
                            tag = false
                        }
                    }
                }
                if (me._cids.length == 0) {
                    T("#careList").html("")
                }
            } else {
                if (me._cids.length >= defaultOptions._maxCidNum) {
                    T("#care-wrap-btn").hide();
                    T("#careTip").html(msg.cat.enough).show();
                    tag = false
                } else {
                    T("#care-wrap-btn").show();
                    T("#careTip").html("").hide()
                }
                if (me._cids.length == 0) {
                    T("#careList-title").html("");
                    T("#careList").html(msg.cat.wordTip)
                } else {
                    T("#careList-title").html("\u5df2\u6dfb\u52a0\u7684\u5206\u7c7b")
                }
                T("#addCareTip").html("").hide()
            }
            if (tag) {
                T("#addCareTip").html("").hide()
            }
            _resize();
            return tag
        }
        function dialogBind() {
            T(window).on("resize",
            function() {
                _dialog.center()
            });
            T("#setCareField-wrap").click(function(event) {
                event.preventDefault()
            });
            T("#setCareField-wrap").mouseover(function(event) {
                var item = T(event.target);
                if (item.is("i")) {
                    item.addClass("ihover")
                }
            });
            T("#setCareField-wrap").mouseout(function(event) {
                var item = T(event.target);
                if (item.is("i")) {
                    item.removeClass("ihover")
                }
            });
            T("#care-wrap-addBtn").mouseenter(function() {
                T(this).addClass("hover")
            });
            T("#care-wrap-addBtn").mouseleave(function() {
                T(this).removeClass("hover")
            });
            T("#keyWord-header").click(function(e) {
                if (T(this).attr("ishide")) {
                    T(this).attr("ishide", "").removeClass("headerClose").next().show()
                } else {
                    T(this).attr("ishide", "true").addClass("headerClose").next().hide()
                }
                _resize()
            });
            T("#category-header").click(function(e) {
                if (T(this).attr("ishide")) {
                    T(this).attr("ishide", "").removeClass("headerClose").next().show()
                } else {
                    T(this).attr("ishide", "true").addClass("headerClose").next().hide()
                }
                _resize()
            });
            T("#wordList").on("click",
            function(event) {
                var span = T(event.target);
                if (span.is("i") && span.parent().hasClass("wordSpan")) {
                    _delKeyword(span.parent())
                }
            });
            T("#careList").on("click",
            function(event) {
                var span = T(event.target);
                if (span.is("i") && span.parent().hasClass("careSpan")) {
                    _delCid(span.parent())
                }
            });
            T("#addWordBtn").on("click",
            function(event) {
                _addKeyword(T("#wordInput").val())
            });
            T("#recWordsList").on("click",
            function(event) {
                var span = T(event.target);
                if (span.parent().hasClass("recWordSpan add")) {
                    _addKeyword(span.parent().attr("recword"))
                } else {
                    if (span.hasClass("recWordSpan add")) {
                        _addKeyword(span.attr("recword"))
                    } else {
                        if (span.parent().parent().hasClass("recWordSpan add")) {
                            _addKeyword(span.parent().parent().attr("recword"))
                        }
                    }
                }
            });
            T("#wordInput").on("focus",
            function(event) {
                if (T("#wordInput").val() == "\u8f93\u5165\u60a8\u64c5\u957f\u7684\u5173\u952e\u8bcd") {
                    T("#wordInput").val("").css("color", "#333333")
                }
            });
            T("#wordInput").on("blur",
            function(event) {
                if (T("#wordInput").val() == "") {
                    T("#wordInput").val("\u8f93\u5165\u60a8\u64c5\u957f\u7684\u5173\u952e\u8bcd").css("color", "#b3b3b3")
                }
            });
            T("#addCareBtn").on("click",
            function(event) {
                T("#care-wrap-addBtn").show();
                if (options.defaultCid) {
                    setTimeout(function() {
                        _dialog.cat.setValue(options.defaultCid);
                        options.defaultCid = null
                    },
                    500)
                }
                T(this).hide();
                _resize()
            });
            T("#addCareBtnAdd").on("click",
            function(event) {
                var cid = [];
                var temp = _dialog.cat.getValue();
                if (temp) {
                    cid.push(temp.cid);
                    cid.push(temp.arrName.reverse().join(","))
                }
                if (temp.cid) {
                    _addCid(cid)
                } else {
                    T("#care-wrap-addBtn").hide();
                    T("#addCareBtn").show();
                    _resize()
                }
            });
            T("#addCareBtnDel").on("click",
            function(event) {
                T("#care-wrap-addBtn").hide();
                T("#addCareBtn").show();
                _resize()
            })
        }
        me.init = function(_options) {
            me.tag = false;
            ec.fire("login.check", {
                isLogin: function() {
                    _init()
                },
                noLogin: function() {
                    ec.fire("login.log")
                }
            });
            function _init() {
                options = T.object.extend(defaultOptions, _options);
                T.forEach(options,
                function(item, key) {
                    T.isFunction(item) ? me.on(key, item) : me[key] = item
                });
                var html = '<div id="setCareField-wrap"><div id="keyWord-wrap" class="wrap"><div id="keyWord-header" class="header"><span>\u6211\u5173\u6ce8\u7684\u5173\u952e\u8bcd</span></div><div id="keyWord-body" class="body"><div id="wordList-title">\u5df2\u6dfb\u52a0\u7684\u5173\u952e\u8bcd</div><div id="wordList"></div><div style="clear:both"></div><span class="alert" id="addWordTip">\u6dfb\u52a0\u5173\u952e\u8bcd\u5931\u8d25</span><div id="word-wrap-btn"><div id="word-wrap-addBtn"><input type="text" id="wordInput" value="\u8f93\u5165\u60a8\u64c5\u957f\u7684\u5173\u952e\u8bcd" /><a type="button" id="addWordBtn" href="#"></a></div><div id="recWordsList"></div></div><div style="clear:both"></div><div id="wordTip" class="tip">\u4f60\u5173\u6ce8\u7684\u5173\u952e\u8bcd\u4e2a\u6570\u5df2\u8fbe\u5230\u4e0a\u9650\uff0c\u8bf7\u5220\u9664\u540e\u518d\u505a\u6dfb\u52a0</div></div></div><div id="category-wrap" class="wrap"><div id="category-header" class="header"><span>\u6211\u5173\u6ce8\u7684\u5206\u7c7b</span></div><div id="category-body" class="body"><div id="careList-title">\u5df2\u6dfb\u52a0\u7684\u5206\u7c7b</div><div id="careList"></div><div id="care-wrap-btn"><div id="care-wrap-addBtn"><div id="addCareBtnAdd"><a href="#"></a></div><div id="addCareBtnDel"><a href="#"></a></div></div><div id="addCareBtn"><a href="#"></a></div></div><div style="clear:both"></div><span class="alert" id="addCareTip">\u6dfb\u52a0\u5173\u952e\u8bcd\u5931\u8d25</span><div id="careTip" class="tip">\u4f60\u5173\u6ce8\u7684\u5173\u952e\u8bcd\u4e2a\u6570\u5df2\u8fbe\u5230\u4e0a\u9650\uff0c\u8bf7\u5220\u9664\u540e\u518d\u505a\u6dfb\u52a0</div></div></div></div>';
                _dialog = new Dialog({
                    titleText: "\u8bbe\u7f6e\u5173\u6ce8\u9886\u57df",
                    content: html,
                    contentType: "html",
                    autoDispose: true,
                    width: 520,
                    onhide: function() {
                        var data = {
                            keywords: me._keywords,
                            cids: me._cids
                        };
                        options.onclose(data)
                    }
                });
                _dialog.cat = new Category({
                    target: "care-wrap-addBtn",
                    selectSize: options.selectSize,
                    splitor: "<span>&gt</span>"
                });
                dialogBind();
                T.sio("/ucenter/api/uccarefieldpop?t=" + (new Date()).getTime()).callByServer(function(data) {
                    if (!data) {
                        _initHtml([], []);
                        return
                    }
                    _initHtml(data.keyword, data.category)
                });
                me._recWords = [];
                _checkKeyword();
                _checkCid();
                _initRecWord(me._recWords);
                _resize();
                _dialog.center();
                if (options.defaultKeyword != "") {
                    T("#wordInput").trigger("focus").val(options.defaultKeyword)
                }
                if (options.defaultCid) {
                    T("#addCareBtn").trigger("click")
                }
                var title = "\u8bbe\u7f6e\u5173\u6ce8\u9886\u57df";
                if (options.expand && options.expand != "all") {
                    T("#careList-title").show();
                    T("#wordList-title").show();
                    if (options.expand == "onlyCid") {
                        title = "\u8bbe\u7f6e\u5206\u7c7b";
                        T("#category-wrap").show();
                        T("#keyWord-header").show();
                        T("#keyWord-wrap").hide();
                        T("#category-header").hide()
                    } else {
                        if (options.expand == "onlyKey") {
                            title = "\u8bbe\u7f6e\u5173\u952e\u8bcd";
                            T("#keyWord-wrap").show();
                            T("#category-header").show();
                            T("#category-wrap").hide();
                            T("#keyWord-header").hide()
                        }
                    }
                } else {
                    T("#keyWord-wrap").show();
                    T("#category-header").show();
                    T("#category-wrap").show();
                    T("#keyWord-header").show();
                    T("#careList-title").hide();
                    T("#wordList-title").hide()
                }
                _dialog.setTitleText(title)
            }
        }
    }).extend({});
    exports = SetCareField;
    return exports
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/baidu/baidu.js", "/static/common/ui/dialog/dialog.js", "/static/common/ui/category/category.js", "/static/common/ui/event/event.js", "/static/common/ui/login/login.js"]);
F.module("/static/common/ui/set-class/set-class.js",
function(c, a) {
    var b = c("/static/common/lib/tangram/base/base.js");
    var d = c("/static/common/ui/dialog/dialog.js");
    var e = c("/static/common/ui/category/category.js");
    var f = b.createClass(function(i) {
        var j = this;
        var h = b.extend({
            type: "alert",
            contentType: "element",
            titleText: "\u8bbe\u7f6e\u5206\u7c7b",
            captionText: "",
            footText: "",
            width: 480,
            height: 415
        },
        i || {});
        var g = b('<div class="set-container"/>');
        b('<div class="set-caption"/>').appendTo(g).html(h.captionText);
        var k = b('<div class="set-category"/>').appendTo(g);
        j.category = new e({
            target: k,
            className: "set-class",
            defaultValue: h.defaultValue,
            onchange: h.onchange
        });
        b('<div class="set-footer"/>').appendTo(g).html(h.footText);
        h.content = g.get(0);
        j.instance = new d(h)
    }).extend({
        dispose: function() {
            var g = this.instance;
            b(g.getElement()).add(g._mask.getElement()).remove()
        },
        showMsg: function(h) {
            var g = this.instance.getElement(),
            i = b(".set-footer .set-message", g);
            if (i.length) {
                i.html(h)
            } else {
                b('<div class="set-message f-stress"/>').html(h).appendTo(b(".set-footer", g))
            }
        },
        getValue: function() {
            return this.category.getValue()
        }
    });
    a = f;
    return a
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/dialog/dialog.js", "/static/common/ui/category/category.js"]);
F.module("/static/common/ui/store/store.js",
function(d, h) {
    var g = d("/static/common/lib/tangram/base/base.js");
    var k = {},
    j = window,
    m = j.document,
    c = "localStorage",
    o = "globalStorage",
    f = "__storejs__",
    i;
    k.disabled = false;
    k.set = function(e, p) {};
    k.get = function(e) {};
    k.remove = function(e) {};
    k.clear = function() {};
    k.transact = function(e, p) {
        var q = k.get(e);
        if (typeof q == "undefined") {
            q = {}
        }
        p(q);
        k.set(e, q)
    };
    k.serialize = function(e) {
        return g.json.stringify(e)
    };
    k.deserialize = function(e) {
        if (typeof e != "string") {
            return undefined
        }
        return g.json.parse(e)
    };
    function b() {
        try {
            return (c in j && j[c])
        } catch(e) {
            return false
        }
    }
    function n() {
        try {
            return (o in j && j[o] && j[o][j.location.hostname])
        } catch(e) {
            return false
        }
    }
    if (b()) {
        i = j[c];
        k.set = function(e, p) {
            i.setItem(e, k.serialize(p))
        };
        k.get = function(e) {
            return k.deserialize(i.getItem(e))
        };
        k.remove = function(e) {
            i.removeItem(e)
        };
        k.clear = function() {
            i.clear()
        }
    } else {
        if (n()) {
            i = j[o][j.location.hostname];
            k.set = function(e, p) {
                i[e] = k.serialize(p)
            };
            k.get = function(e) {
                return k.deserialize(i[e] && i[e].value)
            };
            k.remove = function(e) {
                delete i[e]
            };
            k.clear = function() {
                for (var e in i) {
                    delete i[e]
                }
            }
        } else {
            if (m.documentElement.addBehavior) {
                var i = m.createElement("div");
                function a(e) {
                    return function() {
                        var q = Array.prototype.slice.call(arguments, 0);
                        q.unshift(i);
                        m.body.appendChild(i);
                        i.addBehavior("#default#userData");
                        i.load(c);
                        var p = e.apply(k, q);
                        m.body.removeChild(i);
                        return p
                    }
                }
                k.set = a(function(q, e, p) {
                    q.setAttribute(e, k.serialize(p));
                    q.save(c)
                });
                k.get = a(function(p, e) {
                    return k.deserialize(p.getAttribute(e))
                });
                k.remove = a(function(p, e) {
                    p.removeAttribute(e);
                    p.save(c)
                });
                k.clear = a(function(r) {
                    var p = r.XMLDocument.documentElement.attributes;
                    r.load(c);
                    for (var q = 0,
                    e; e = p[q]; q++) {
                        r.removeAttribute(e.name)
                    }
                    r.save(c)
                })
            }
        }
    }
    try {
        k.set(f, f);
        if (k.get(f) != f) {
            k.disabled = true
        }
        k.remove(f)
    } catch(l) {
        k.disabled = true
    }
    h = k;
    return h
},
["/static/common/lib/tangram/base/base.js"]);
F.module("/static/common/ui/submit/submit.js",
function(b, f) {
    var c = b("/static/common/lib/tangram/base/base.js"),
    h = b("/static/common/ui/dialog/dialog.js"),
    i = b("/static/common/ui/ut/ut.js"),
    g = b("/static/common/ui/event/event.js"),
    a = b("/static/common/ui/form/form.js"),
    d = b("/static/common/ui/captcha/captcha.js"),
    e = b("/static/common/ui/log/log.js");
    var j = c.createClass(function(l) {
        var n = this;
        g.fire("editor.default");
        var m = {
            url: "/submit/ajax/",
            params: {
                ie: "UTF-8"
            },
            hasJump: false,
            autoRefresh: false,
            jumpSubmit: function(r, q, p) {
                var o = {
                    name: n.guid + "_FORM_NAME",
                    id: n.guid + "_FORM_ID",
                    action: "/submit/",
                    method: "post"
                };
                if (document.referrer != "") {
                    o.action = "/submit/?cm=" + q.cm + "&fr=" + encodeURIComponent(document.referrer)
                } else {
                    o.action = "/submit/?cm=" + q.cm
                }
                new a(c.extend(c.extend(o, p || {}), {
                    input: q
                })).submit()
            },
            errorDeal: function(s, r, o) {
                r = r || {
                    info: "\u7f51\u7edc\u5f02\u5e38\u5566\uff1a\uff08\u8bf7\u91cd\u65b0\u63d0\u4ea4"
                };
                if (r && o && o == 10054) {
                    var q = ['<div class="dialog-noemail"><i class="i-upload-big"></i><i class="i-download-big"></i>', '<p class="f-bold mt-20">\u77e5\u9053\u5df2\u652f\u6301\u6587\u4ef6\u4e0a\u4f20\u3001\u4e0b\u8f7d\u529f\u80fd\u3002</p>', '<p class="f-gray mt-5">\u77e5\u9053\u7f51\u53cb\u4f1a\u5c06\u60a8\u9700\u8981\u7684\u6587\u4ef6\u4e0a\u4f20\u5230\u77e5\u9053\uff0c\u60a8\u53ef\u4ee5\u5728\u7ebf\u9884\u89c8\u548c\u4e0b\u8f7d\u3002</p>', '<p class="f-orange mt-5">\u4e3a\u4e86\u60a8\u7684\u4fe1\u606f\u5b89\u5168\uff0c\u8bf7\u4e0d\u8981\u7559\u4e0b\u60a8\u7684\u4e2a\u4eba\u90ae\u7bb1\u3002</p>', '<p class="dialog-noemail-btn"><a id="dialog-noemail-btn" class="btn btn-32-green"><em><b>\u8fd4\u56de\u4fee\u6539</b></em></a></p></div>'];
                    var p = new h({
                        type: "alert",
                        titleText: "\u4fe1\u606f\u63d0\u793a",
                        width: 480,
                        height: 360,
                        content: q.join(""),
                        buttons: {
                            enable: false
                        },
                        onload: function() {
                            c(".dialog-noemail-btn").delegate("a", "click",
                            function(t) {
                                t.preventDefault();
                                g.fire("dialog.close")
                            })
                        }
                    })
                } else {
                    if (o == 12303 && m.authcode) {
                        m.captcha = new d({
                            type: "pcafter",
                            submitParams: m,
                            from: m.authcode.getOptions().from || ""
                        })
                    } else {
                        if (o == 12304 && m.captcha) {
                            m.captcha.error()
                        } else {
                            if (o == 12302 && m.authcode) {
                                m.authcode.error()
                            } else {
                                h.alert(r.info);
                                if (m.autoRefresh) {
                                    setTimeout(function() {
                                        window.location.reload(true)
                                    },
                                    3000)
                                }
                            }
                        }
                    }
                }
                e.send({
                    type: 2032,
                    action: "submitError",
                    errorNo: o
                })
            }
        };
        c.forEach(c.extend(m, l),
        function(p, o) {
            if (c.isFunction(p)) {
                n.on(o, p)
            }
        });
        if (m.params) {
            m.params.utdata = i.report()["c"]
        }
        if (m.syncId) {
            if ("undefined" === typeof n.syncIdMap[m.syncId]) {
                n.syncIdMap[m.syncId] = false
            }
            if (n.syncIdMap[m.syncId]) {
                return
            } else {
                n.syncIdMap[m.syncId] = true
            }
        }
        var k = function() {
            if (/\/submit\/(ajax|user)/.test(m.url) && F.context("user").stoken) {
                m.params.stoken = F.context("user").stoken
            }
            c.ajax(m.url, {
                type: m.method || "post",
                dataType: m.dataType || "json",
                data: m.params,
                async: !(m.sync || false),
                success: function(q, p, o) {
                    if (m.syncId) {
                        n.syncIdMap[m.syncId] = false
                    }
                    if (q && typeof q.errorNo === "undefined") {
                        q.errorNo = q.errno
                    }
                    if (q && typeof q.data === "undefined") {
                        q.data = q
                    }
                    if (q && q.errorNo == 0) {
                        if (m.captcha) {
                            m.captcha.dialog.hide()
                        }
                        if (n.fire("beforeJump", q.data)) {
                            if (m.hasJump) {
                                n.fire("jumpSubmit", q.data)
                            }
                        }
                    } else {
                        var r = q ? q.data: "";
                        if (n.fire("beforeError", r)) {
                            if (q && q.errorNo == 267) {
                                n.errorCheck({
                                    errorNo: 267,
                                    actCallback: function() {
                                        window.open("https://passport.baidu.com/v2/?binding&tpl=ik&u=http%3A%2F%2Fzhidao.baidu.com&device=pc")
                                    },
                                    confirmCallback: function() {
                                        k()
                                    }
                                });
                                return
                            }
                            if (q && q.errorNo == 12 && r.reason == 16) {
                                n.errorCheck({
                                    errorNo: 12,
                                    actCallback: function() {
                                        window.open("/uhome/set/verify?fr=submit")
                                    },
                                    confirmCallback: function() {
                                        k()
                                    }
                                });
                                return
                            }
                            if (q && q.errorNo == 13) {
                                n.errorCheck({
                                    errorNo: 13,
                                    actCallback: function() {
                                        window.open("/uhome/set/profile?type=contact")
                                    },
                                    confirmCallback: function() {
                                        k()
                                    }
                                });
                                return
                            }
                            n.fire("errorDeal", r, q && q.errorNo)
                        }
                    }
                },
                error: function(o, p, q) {
                    if (m.syncId) {
                        n.syncIdMap[m.syncId] = false
                    }
                    if (n.fire("error", q)) {
                        n.fire("errorDeal")
                    }
                }
            })
        };
        k()
    }).extend({
        syncIdMap: {},
        errorCheck: function(k) {
            var m = this;
            if (!m.errorNo_Checked) {
                m.errorNo_Checked = {
                    267 : {
                        title: "\u77e5\u9053\u63d0\u793a",
                        content: "\u8fd8\u5dee\u4e00\u6b65\u5373\u53ef\u5b8c\u6210\u63d0\u4ea4\u54e6\uff1a\u5b8c\u6210\u4e2a\u4eba\u4fe1\u606f\u8865\u586b",
                        act: "\u4fe1\u606f\u8865\u586b",
                        confirm: "\u786e\u8ba4\u63d0\u4ea4",
                        cancel: "\u653e\u5f03\u63d0\u4ea4"
                    },
                    12 : {
                        title: "\u77e5\u9053\u63d0\u793a",
                        content: "\u7531\u4e8e\u60a8\u7684\u8d26\u53f7\u5b58\u5728\u5f02\u5e38\u98ce\u9669\uff0c\u6211\u4eec\u6682\u65f6\u51bb\u7ed3\u4e86\u60a8\u7684\u8d26\u53f7\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u9a8c\u8bc1\u60a8\u7684\u8eab\u4efd\u6765\u89e3\u9664\u51bb\u7ed3\u72b6\u6001",
                        act: "\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1",
                        confirm: "\u5b8c\u6210\u8eab\u4efd\u9a8c\u8bc1",
                        cancel: "\u53d6\u6d88"
                    },
                    13 : {
                        title: "\u5e10\u53f7\u5b89\u5168\u98ce\u9669\u63d0\u793a",
                        content: "\u5c0a\u656c\u7684\u77e5\u53cb\uff0c\u4e3a\u4e86\u66f4\u597d\u5730\u4fdd\u62a4\u60a8\u7684\u5e10\u53f7\uff0c\u8bf7\u7ed1\u5b9a\u624b\u673a\u540e\u518d\u8fdb\u884c\u8be5\u64cd\u4f5c\u3002\u7ed1\u5b9a\u540e\u5e10\u53f7\u51fa\u73b0\u5f02\u5e38\u53ef\u514d\u8d39\u83b7\u5f97\u77ed\u4fe1\u63d0\u9192",
                        act: "\u8fdb\u884c\u624b\u673a\u7ed1\u5b9a",
                        confirm: "\u5b8c\u6210\u624b\u673a\u7ed1\u5b9a",
                        cancel: "\u53d6\u6d88",
                        height: 170
                    }
                }
            }
            if (!m.errorNo_Checked[k.errorNo]) {
                return
            }
            var l = new h({
                width: 350,
                height: m.errorNo_Checked[k.errorNo].height || 160,
                titleText: m.errorNo_Checked[k.errorNo].title || "\u77e5\u9053\u63d0\u793a",
                content: m.errorNo_Checked[k.errorNo].content || "",
                buttons: {
                    items: [{
                        text: m.errorNo_Checked[k.errorNo].act || "",
                        click: function() {
                            var n = c(this).find("b");
                            if (n.html() == (m.errorNo_Checked[k.errorNo].act || "")) {
                                k.actCallback && k.actCallback();
                                n.html((m.errorNo_Checked[k.errorNo].confirm || ""))
                            } else {
                                l.hide();
                                k.confirmCallback && k.confirmCallback()
                            }
                        }
                    },
                    {
                        text: m.errorNo_Checked[k.errorNo].cancel || "\u53d6\u6d88",
                        click: function() {
                            l.hide();
                            k.cancelCallback && k.cancelCallback()
                        }
                    }],
                    align: "center",
                    enable: true
                },
                autoDispose: true
            })
        }
    });
    g.on("catcha.submit",
    function(l, k) {
        new j(k)
    });
    f = j;
    return f
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/dialog/dialog.js", "/static/common/ui/ut/ut.js", "/static/common/ui/event/event.js", "/static/common/ui/form/form.js", "/static/common/ui/captcha/captcha.js", "/static/common/ui/log/log.js"]);
F.module("/static/common/ui/suggestion/suggestion.js",
function(d, a) {
    var c = d("/static/common/lib/tangram/base/base.js");
    var b = d("/static/common/ui/event/event.js");
    var f = d("/static/common/lib/magic/magic.js");
    d("/static/common/lib/magic/setup/suggestion/suggestion.js");
    function e(j) {
        var i = c.cookie.get("IK_SUG"),
        h = c.string(j).trim();
        if (i == "1") {
            return
        }
        if (h == "") {
            return
        }
        var g = "http://nssug.baidu.com/su?wd=" + encodeURIComponent(h) + "&prod=zhidao&t=" + (new Date()).getTime();
        c.sio(g).callByBrowser()
    }
    baidu = typeof(baidu) == "undefined" ? {}: baidu;
    baidu.sug = function(i) {
        var g = i.q;
        var h = i.s;
        a.instance.receiveData(g, h)
    };
    a = {
        instance: "",
        id: "",
        init: function(g) {
            if (!a.instance || (g != a.id)) {
                a.id = g;
                a.instance = f.setup.suggestion(g, {
                    getData: e,
                    appendHTML: '<span class="disable-sug">\u5173\u95ed</span>',
                    onbeforepick: function(h) {
                        if (c.isNumber(h.index)) {
                            var i = c("<div/>").html(h.value);
                            this.currentData[h.index].value = i.text()
                        }
                    }
                });
                a.instance.on("show",
                function(i) {
                    var h = this;
                    c(".disable-sug", h.getElement("append")).one("click",
                    function(j) {
                        h.hide();
                        c.cookie.set("IK_SUG", "1")
                    });
                    c.forEach(this.getElements(),
                    function(k, j) {
                        if (j.match(/^item\d+$/)) {
                            var l = c(k).text();
                            l && c(k).html(l.replace(h.currentQuery, "<em>" + h.currentQuery + "</em>"))
                        }
                    })
                })
            }
        }
    };
    return a
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/event/event.js", "/static/common/lib/magic/magic.js", "/static/common/lib/magic/setup/suggestion/suggestion.js"]);
F.module("/static/common/ui/template/template.js",
function(c, b) {
    var a = function(g, f) {
        var e = (function() {
            if (!this.document) {
                return a._compile(g)
            }
            var i = document.getElementById(g);
            if (i) {
                if (a.cache[g]) {
                    return a.cache[g]
                }
                var h = /^(textarea|input)$/i.test(i.nodeName) ? i.value: i.innerHTML;
                return a._compile(h)
            } else {
                return a._compile(g)
            }
        })();
        var d = a._isObject(f) ? e(f) : e;
        e = null;
        return d
    };
    a.cache = {};
    a.LEFT_DELIMITER = a.LEFT_DELIMITER || "<%";
    a.RIGHT_DELIMITER = a.RIGHT_DELIMITER || "%>";
    a.ESCAPE = true;
    a._encodeHTML = function(d) {
        return String(d).replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\\/g, "&#92;").replace(/"/g, "&quot;").replace(/'/g, "&#39;")
    };
    a._encodeReg = function(d) {
        return String(d).replace(/([.*+?^=!:${}()|[\]/\\]) / g,
        "\\$1")
    };
    a._encodeEventHTML = function(d) {
        return String(d).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").replace(/\\\\/g, "\\").replace(/\\\//g, "/").replace(/\\n/g, "\n").replace(/\\r/g, "\r")
    };
    a._compile = function(e) {
        var d = "var _template_fun_array=[];\nvar fn=(function(data){\nvar _template_varName='';\nfor(name in data){\n_template_varName+=('var '+name+'=data[\"'+name+'\"];');\n};\neval(_template_varName);\n_template_fun_array.push('" + a._analysisStr(e) + "');\n_template_varName=null;\n})(_template_object);\nfn = null;\nreturn _template_fun_array.join('');\n";
        return new Function("_template_object", d)
    };
    a._isObject = function(d) {
        return "function" === typeof d || !!(d && "object" === typeof d)
    };
    a._analysisStr = function(f) {
        var d = a.LEFT_DELIMITER;
        var h = a.RIGHT_DELIMITER;
        var e = a._encodeReg(d);
        var g = a._encodeReg(h);
        f = String(f).replace(new RegExp("(" + e + "[^" + g + "]*)//.*\n", "g"), "$1").replace(new RegExp("<!--.*?-->", "g"), "").replace(new RegExp(e + "\\*.*?\\*" + g, "g"), "").replace(new RegExp("[\\r\\t\\n]", "g"), "").replace(new RegExp(e + "(?:(?!" + g + ")[\\s\\S])*" + g + "|((?:(?!" + e + ")[\\s\\S])+)", "g"),
        function(j, i) {
            var k = "";
            if (i) {
                k = i.replace(/\\/g, "&#92;").replace(/'/g, "&#39;");
                while (/<[^<]*?&#39;[^<]*?>/g.test(k)) {
                    k = k.replace(/(<[^<]*?)&#39;([^<]*?>)/g, "$1\r$2")
                }
            } else {
                k = j
            }
            return k
        }).replace(new RegExp("(" + e + ":?[hvu]?[\\s]*?=[\\s]*?[^;|" + g + "]*?);[\\s]*?" + g, "g"), "$1" + h).replace(new RegExp("(" + e + "[\\s]*?var[\\s]*?.*?[\\s]*?[^;])[\\s]*?" + g, "g"), "$1;" + h).split(d).join("\t");
        if (a.ESCAPE) {
            f = f.replace(new RegExp("\\t=(.*?)" + g, "g"), "',typeof($1) === 'undefined'?'':baiduTemplate._encodeHTML($1),'")
        } else {
            f = f.replace(new RegExp("\\t=(.*?)" + g, "g"), "',typeof($1) === 'undefined'?'':$1,'")
        }
        f = f.replace(new RegExp("\\t:h=(.*?)" + g, "g"), "',typeof($1) === 'undefined'?'':baiduTemplate._encodeHTML($1),'").replace(new RegExp("\\t(?::=|-)(.*?)" + g, "g"), "',typeof($1)==='undefined'?'':$1,'").replace(new RegExp("\\t:u=(.*?)" + g, "g"), "',typeof($1)==='undefined'?'':encodeURIComponent($1),'").replace(new RegExp("\\t:v=(.*?)" + g, "g"), "',typeof($1)==='undefined'?'':baiduTemplate._encodeEventHTML($1),'").split("\t").join("');").split(h).join("_template_fun_array.push('").split("\r").join("\\'");
        return f
    };
    window.baiduTemplate = a;
    a.LEFT_DELIMITER = "<#";
    a.RIGHT_DELIMITER = "#>";
    b = a;
    return b
},
[]);F.module("/static/common/ui/tip/tip.js",
function(d, a) {
    var c = d("/static/common/lib/tangram/base/base.js");
    var b = c.createClass(function(h) {
        var f = c.extend({
            width: 200,
            offset: [0, 0],
            direction: "down",
            effect: "",
            skin: "",
            arrow: true,
            closebox: false,
            radius: true,
            shadow: true,
            target: ""
        },
        h);
        var i = this,
        e = "";
        this._status = "hide";
        this.getTipContainer = function() {
            return c("#" + e).get(0)
        };
        this.getTipBody = function() {
            return c("#" + e + "-body").get(0)
        };
        this.getStatus = function() {
            return this._status
        };
        this.getProperties = function() {
            return f
        };
        function g(l) {
            e = l + "-tip";
            var k = c("#" + e);
            if (!k.size()) {
                k = c('<div id="' + e + '" class="ik-tip line" style="position: absolute; left: -9999px"></div>');
                var n = [];
                if (f.arrow) {
                    n.push('<div class="tip-arrow arrow-' + f.direction + '"><em></em><span></span></div>')
                }
                if (c.browser.ie && c.browser.ie < 9) {
                    n.push('<b class="tl"></b><b class="tr"></b><b class="bl"></b><b class="br"></b>')
                }
                if (f.closebox) {
                    n.push('<a href="#" class="tip-close" title="\u5173\u95ed">\u00D7</a>')
                }
                n.push('<div class="tip-box"><div id="' + e + '-body" class="tip-body"></div></div>');
                k.append('<div class="tip-inner">' + n.join("") + "</div>").appendTo(document.body)
            }
            var m = j("tip-inner");
            f.skin && k.addClass(f.skin);
            f.shadow && m.addClass("ik-tip-shadow");
            f.radius && m.addClass("ik-tip-radius");
            if (f.closebox) {
                j("tip-close").click(function(o) {
                    if (i.fire("onclose")) {
                        i.hide()
                    }
                    o.preventDefault();
                    return false
                })
            }
        }
        function j(k) {
            return c.dom("." + k, i.getTipContainer())
        }
        this.setPosition = function() {
            if (!f.target) {
                return
            }
            var l = c.isString(f.target) ? c("#" + f.target) : c(f.target);
            var m = l.offset();
            var k = c(this.getTipContainer());
            if (f.direction == "down") {
                m.top = m.top + parseInt(l.css("height"), 10) + f.offset[1] + (f.arrow ? 10 : 0);
                m.left = m.left + f.offset[0]
            }
            if (f.direction == "up") {
                m.top = m.top - parseInt(k.css("height"), 10) - f.offset[1] - (f.arrow ? 10 : 0);
                m.left = m.left + f.offset[0]
            }
            if (f.direction == "left") {
                m.top = m.top + f.offset[1];
                m.left = m.left - parseInt(k.css("width"), 10) - f.offset[0] - (f.arrow ? 10 : 0)
            }
            if (f.direction == "right") {
                m.top = m.top + f.offset[1];
                m.left = m.left + parseInt(l.css("width"), 10) + f.offset[0] + (f.arrow ? 10 : 0)
            }
            k.css(m)
        };
        this.setArrowPosition = function(k) {
            j("tip-arrow").css(k)
        };
        this.update = function(m) {
            c.extend(f, m || {});
            var l = this.getTipContainer(),
            k = this.getTipBody();
            c(l).css({
                width: (isNaN(f.width) ? f.width: parseInt(f.width, 10) + "px")
            });
            f.height && c(l).css({
                height: parseInt(f.height, 10) + "px"
            });
            if (m && m.content) {
                c(k).empty().append(f.content)
            }
            this.fire("onupdate")
        };
        this.show = function(l) {
            if (l) {
                f.target = l
            }
            this.update();
            this.setPosition();
            var k = c(this.getTipContainer());
            f.height = k.outerHeight();
            k.hide();
            if (this.fire("onshow")) {
                k.show();
                this._status = "show"
            }
        };
        this.hide = function() {
            var k = c(this.getTipContainer());
            if (this.fire("onhide")) {
                k.hide();
                this._status = "hide";
                if (f.autoDispose) {
                    this.dispose()
                }
            }
        };
        this.dispose = function() {
            c(this.getTipContainer()).remove();
            this._status = "disposed";
            b.prototype.dispose.call(this)
        };
        g(this.guid);
        c(this.getTipBody()).append(f.content);
        if (f.effect !== "" && this.effects[f.effect]) {
            this.effects[f.effect].call(i, i)
        }
        c.forEach(f,
        function(l, k) {
            if (c.isFunction(l)) {
                i.on(k, l)
            }
        })
    });
    b.extend({
        effects: {},
        register: function(e) {
            c.extend(this.effects, e)
        }
    });
    a = b;
    return a
},
["/static/common/lib/tangram/base/base.js"]);F.module("/static/common/ui/tip/move/move.js",
function(d, a) {
    var c = d("/static/common/ui/tip/tip.js");
    var b = d("/static/common/lib/tangram/base/base.js");
    d("/static/common/ui/baidu/fx/fx.js");
    c.prototype.register({
        move: function() {
            var f = this.getProperties(),
            e = b(this.getTipContainer()),
            h = e.children().first(),
            g = this;
            this.on("onshow",
            function(i) {
                if (f.direction == "up") {
                    if (f.arrow) {
                        e.css({
                            height: f.height
                        })
                    }
                    h.css({
                        position: "relative",
                        top: f.height
                    });
                    e.show();
                    b.fx.moveTo(h[0], [0, 0], {
                        duration: f.duration || 300
                    })
                }
                i.returnValue = false
            });
            this.on("onhide",
            function(i) {
                if (f.direction == "up") {
                    b.fx.moveTo(h[0], [0, f.height], {
                        duration: f.duration || 300,
                        onafterfinish: function() {
                            e.hide();
                            f.autoDispose && g.dispose()
                        }
                    })
                }
                i.returnValue = false
            })
        }
    });
    a = c;
    return a
},
["/static/common/ui/tip/tip.js", "/static/common/lib/tangram/base/base.js", "/static/common/ui/baidu/fx/fx.js"]);F.module("/static/common/ui/tip/fade/fade.js",
function(d, a) {
    var c = d("/static/common/ui/tip/tip.js");
    var b = d("/static/common/lib/tangram/base/base.js");
    c.prototype.register({
        fade: function() {
            var f = this.getProperties(),
            e = this.getTipContainer();
            this.on("onshow",
            function(g) {});
            this.on("onhide",
            function(g) {})
        }
    });
    a = c;
    return a
},
["/static/common/ui/tip/tip.js", "/static/common/lib/tangram/base/base.js"]);F.module("/static/common/ui/uri/uri.js",
function(d, a) {
    var c = d("/static/common/lib/tangram/base/base.js");
    var b = {
        bindok: "/static/common/html/bindok_ad21dfc0.html",
        carefield: "/static/common/html/carefield_7c53b643.html",
        jump: "/static/common/html/jump_21e78501.html",
        map: "/static/common/html/map_2274f7b9.html",
        qbasktoteam: "/static/common/html/qbasktoteam_603f8135.html",
        username: "/static/common/html/username_3ab9923b.html",
        v2Jump: "/static/common/html/v2Jump_df5ebfb7.html",
        v3Jump: "/static/common/html/v3Jump_bf2a8d6e.html",
        xd: "/static/common/html/xd_af6c3c6f.html",
        addmapBrowse: "/static/common/html/map_add_for_browse_9bcb134b.html",
        addmapAddress: "/static/common/html/map_add_address_6214333c.html",
        userSetJump: "/static/common/html/user_set_jump_92a36d1b.html",
        clipboardSwf: "/static/common/swf/zeroClipboard_a7682f22.swf",
        fileUploaderSwf: "/static/common/swf/fileUploader_21d0747e.swf",
        songofjoySwf: "/static/common/swf/songofjoy/songofjoy_a238b90f.swf",
        lotterySwf: "/static/common/swf/lottery/lottery_85975bd3.swf",
        lotteryXml: "/static/common/swf/lottery/lottery_9f04cb47.xml"
    };
    c.forEach(b,
    function(f, e) {
        b[e] = f.replace(/\/static\/common\/(html|swf)\//, "/static/$1/")
    });
    a = b;
    return a
},
["/static/common/lib/tangram/base/base.js"]);F.module("/static/common/ui/ut/ut.js",
function(h, s) {
    var d = h("/static/common/lib/tangram/base/base.js");
    var b = h("/static/common/ui/form/form.js");
    var p = +new Date();
    var o = {
        ea: [],
        ma: []
    },
    i = {},
    a = false,
    l = 0,
    j = +new Date(),
    q = {},
    k = [];
    function u(x) {
        var t = [x.x, x.y],
        w = d(this),
        v = o[this.id];
        if (v) {
            if (!v.hover) {
                v.hover = true;
                v.count++
            }
        } else {
            var y = w.position();
            y.right = y.left + w.width();
            y.botton = y.top + w.height();
            v = o[this.id] = d.extend(y, {
                hover: true,
                count: 1
            })
        }
        if (!v["mouse" + v.count]) {
            v["mouse" + v.count] = [];
            v["time" + v.count] = {
                start: +new Date()
            };
            o.ma.push(v["mouse" + v.count]);
            o.ea.push(this.id)
        }
        v["mouse" + v.count].push(t)
    }
    function r(w) {
        var t = [w.x, w.y];
        var v = o[this.id];
        if (v && v.hover) {
            if (t[0] && t[0] > v.left && t[0] < v.right && t[1] && t[1] > v.top && t[1] < v.buttom) {
                return
            }
            v["time" + v.count].end = (new Date()).getTime();
            v.hover = false
        }
    }
    function e() {
        var t = o.ma.length;
        if (t > 0) {
            var v = o.ma[t - 1];
            return v[v.length - 1]
        }
    }
    function g() {
        var v = o.ea.concat();
        var t = v.length;
        if (t > 10) {
            v = v.splice(t - 10, 10)
        }
        return v.join(",")
    }
    function m() {
        if (a) {
            return i
        }
        d.forEach(o.ea,
        function(w, v) {
            o.ea[v] = q[w]
        });
        var t = [e(), g(), (new Date()).getTime() - p, [screen.width, screen.height].join(",")].join("\t");
        i.c = c(t) + "," + j + "" + l;
        a = true;
        return i
    }
    function c(z) {
        var t = [];
        var x = {};
        var y = j % 100;
        for (var w = 0,
        v = z.length; w < v; w++) {
            var A = z.charCodeAt(w) ^ y;
            t.push(A);
            if (!x[A]) {
                x[A] = []
            }
            x[A].push(w)
        }
        return t
    }
    function n(t) {
        d.each(t,
        function(v, w) {
            d("#" + w).mouseover(u).mouseout(r);
            q[w] = v
        });
        d(document.body).click(function(v) {
            l = 1
        })
    }
    function f(t, v) {
        new b({
            method: "post",
            target: "iktssender",
            action: t,
            input: v
        }).submit().dispose()
    }
    s = {
        start: n,
        report: m,
        send: f
    };
    return s
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/form/form.js"]);F.module("/static/common/ui/util/util.js",
function(e, b) {
    var d = e("/static/common/lib/tangram/base/base.js");
    var a = e("/static/common/ui/dialog/dialog.js");
    var c = e("/static/common/ui/event/event.js");
    b.num2chinese = function(f) {
        var k = f.toString(),
        q = parseInt(k.split("").reverse().join(""), 10),
        g = ["", "\u5341", "\u767e", "\u5343", "\u4e07"],
        o = ["\u96f6", "\u4e00", "\u4e8c", "\u4e09", "\u56db", "\u4e94", "\u516d", "\u4e03", "\u516b", "\u4e5d", "\u5341"],
        m = k.length,
        p = "",
        h = q.toString().length;
        for (var j = 0; j < h; j++) {
            p += (j == 0 && m == 2 && (q % 10) == 1) ? "": o[q % 10];
            p += (q % 10) == 0 ? "": g[m - j - 1];
            q = Math.floor(q / 10)
        }
        return p
    };
    b.getModuleName = function() {
        var f = location.pathname;
        if (f) {
            f = f.split("/");
            if (f.length > 0 && !f[0]) {
                f.shift()
            }
            return f[0] || "home"
        }
    };
    b.addStyleSheet = function(f) {
        if (d.type(f) == "object" && !d.object.isEmpty(f)) {
            var h = ["\n"];
            for (var g in f) {
                h.push(g, "{", f[g], "}\n")
            }
            if (d.browser.ie) {
                document.createStyleSheet().cssText = h.join("")
            } else {
                var i = d('<style type="text/css"></style>');
                i.append(h.join("")).appendTo(d("head")[0])
            }
        }
    };
    b.textboxPlaceHolder = function(g, j, i) {
        this.textbox = d.isString(g) ? d("#" + g) : d(g);
        this.holderText = j || {
            value: ""
        };
        this.cssClass = "textboxPlaceHolder";
        i = d.extend({
            color: "#999"
        },
        (d.type(i) == "object" ? i: {}));
        var h = [];
        for (var k in i) {
            h.push(k + ":" + i[k])
        }
        h = h.join(";");
        b.addStyleSheet({
            ".textboxPlaceHolder": h
        });
        if (this.textbox.length && this.holderText) { (!this.textbox.val() || this.textbox.val() == this.holderText.title) && this.textbox.addClass(this.cssClass).val(this.holderText.title || this.holderText.value);
            var f = this;
            this.textbox.focus(function(l) {
                if (f.isTextboxValueDefault()) {
                    f.textbox.val(f.holderText.value).removeClass(f.cssClass);
                    f.textbox.one("click",
                    function() {
                        this.select()
                    })
                }
            });
            this.textbox.blur(function(l) {
                if (!f.textbox.val() || f.textbox.val() == f.holderText.value || f.textbox.val() == f.holderText.title) {
                    f.textbox.addClass(f.cssClass).val(f.holderText.title || f.holderText.value)
                }
            })
        }
        return this
    };
    b.textboxPlaceHolder.prototype = {
        constructor: b.textboxPlaceHolder,
        isTextboxValueDefault: function() {
            return this.textbox && (!this.textbox.val() || (this.textbox.val() == (this.holderText.title || this.holderText.value) && this.textbox.hasClass(this.cssClass)))
        }
    };
    b.suffixStr = function(j, f, i) {
        var h = j || "";
        if (typeof(j) == "string" && Math.max(Math.floor(f), 0)) {
            i = typeof(i) == "undefined" ? "...": i.toString();
            var g = d.string(i).getByteLength();
            if (g > f) {
                i = d.string.subByte(i, f);
                g = d.string(i).getByteLength()
            }
            if (d.string(j).getByteLength() > f) {
                h = d.string.subByte(j, f - g) + i
            }
        }
        return h
    };
    b.countDown = d.createClass(function(g) {
        var h = this;
        var f = {
            id: "",
            st: 0,
            ct: 0,
            interval: 10,
            onComplete: function() {},
            onStart: function() {}
        };
        d.object.extend(f, g);
        this.id = f.id || this.guid;
        this.target = d.isString(f.id) ? d("#" + f.id) : d(f.id);
        var i = (f.interval * 60 - (f.st - f.ct)) * 1000,
        j = null;
        if (i <= 0) {
            f.onComplete();
            return
        }
        f.onStart();
        j = setInterval(function() {
            i -= 100;
            var k = new Date(i),
            n = k.getMinutes(),
            l = k.getSeconds(),
            m = d.string("#{m}:#{s}").format({
                m: d.number(n).pad(2),
                s: d.number(l).pad(2)
            });
            h.target.html(m);
            if (i <= 0) {
                clearInterval(j);
                f.onComplete();
                return
            }
        },
        100)
    });
    b.fixedAsk = (function() {
        var h = [];
        var g = function(j, k) {
            d.get("/iask/api/ikhelplimit?un=" + encodeURIComponent(j) + "&t=" + (new Date()).getTime(),
            function(l) {
                if (!l || l.status != 0) {
                    return k(1)
                }
                if (!l.data.ifUsernameOK) {
                    return k(2)
                }
                if (l.data.replyMaxNum == 0 || l.data.replyLimit <= 0) {
                    return k(l.data.isExpert == 1 ? 3 : 4)
                }
                k(0)
            },
            "json")
        };
        var f = function() {
            var j = d(window).scrollTop() + d(window).height();
            d.each(h,
            function(l, k) {
                if (!k.checked && j > d(k.element).offset().top - 150) {
                    k.checked = true;
                    g(k.uname,
                    function(m) {
                        if (m >= 2) {
                            k.element.className = "btn btn-24-disabled"
                        }
                        if (m == 2) {
                            k.element.title = "\u6b64\u7528\u6237\u4e0d\u5b58\u5728"
                        }
                        if (m == 3) {
                            k.element.title = "\u6b64\u4e13\u5bb6\u5df2\u6536\u5230\u8f83\u591a\u63d0\u95ee\uff0c\u6682\u65f6\u6ca1\u6cd5\u518d\u63a5\u53d7\u5176\u4ed6\u7f51\u53cb\u7684\u6c42\u52a9\u5566\uff0c\u8bf7\u60a8\u660e\u5929\u518d\u8bd5\u5427\uff01"
                        }
                        if (m == 4) {
                            k.element.title = "\u6b64\u7528\u6237\u5df2\u6536\u5230\u8f83\u591a\u63d0\u95ee\uff0c\u6682\u65f6\u6ca1\u6cd5\u518d\u63a5\u53d7\u5176\u4ed6\u7f51\u53cb\u7684\u6c42\u52a9\u5566\uff0c\u8bf7\u60a8\u660e\u5929\u518d\u8bd5\u5427\uff01"
                        }
                    })
                }
            })
        };
        var i = function(j, k) {
            if (h.length == 0) {
                d(window).scroll(f)
            }
            d(j).each(function(l, m) {
                h.push({
                    element: m,
                    uname: k || d(m).data("username"),
                    checked: false
                })
            });
            d(j).click(function(l) {
                l.preventDefault();
                if (this.className.match(/disabled/)) {
                    return
                }
                k = k || d(this).data("username");
                c.fire("login.check", {
                    isLogin: function() {
                        g(k,
                        function(m) {
                            if (m == 0) {
                                location.href = "/new?fix=" + encodeURIComponent(k)
                            } else {
                                if (m == 1) {
                                    a.alert("\u53d1\u751f\u672a\u77e5\u9519\u8bef\uff0c\u8bf7\u91cd\u8bd5\u3002")
                                } else {
                                    if (m == 2) {
                                        a.alert("\u5bf9\u4e0d\u8d77\uff01\u6b64\u7528\u6237\u4e0d\u5b58\u5728\u3002")
                                    } else {
                                        if (m == 3) {
                                            a.alert("\u5bf9\u4e0d\u8d77\uff01\u6b64\u4e13\u5bb6\u6682\u65f6\u65e0\u6cd5\u63a5\u6536\u63d0\u95ee\u6c42\u52a9\uff0c\u60a8\u53ef\u4ee5\u6362\u4e00\u4f4d\u7528\u6237\u8bd5\u8bd5\u3002")
                                        } else {
                                            if (m == 4) {
                                                a.alert("\u5bf9\u4e0d\u8d77\uff01\u6b64\u7528\u6237\u6682\u65f6\u65e0\u6cd5\u63a5\u6536\u63d0\u95ee\u6c42\u52a9\uff0c\u60a8\u53ef\u4ee5\u6362\u4e00\u4f4d\u7528\u6237\u8bd5\u8bd5\u3002")
                                            }
                                        }
                                    }
                                }
                            }
                        })
                    }
                })
            })
        };
        return {
            check: g,
            bind: i
        }
    })();
    b.trim = function(g) {
        var f = d(g).length ? d(g).val() : d("#" + g).val();
        f = f.replace(/\n/g, " ").replace(/\s+/g, " ");
        f = d.string(f).trim();
        return f
    };
    return b
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/dialog/dialog.js", "/static/common/ui/event/event.js"]);F.module("/static/common/ui/fixed-ask/fixed-ask.js",
function(e, b) {
    var d = e("/static/common/lib/tangram/base/base.js");
    var a = e("/static/common/ui/dialog/dialog.js");
    var c = e("/static/common/ui/event/event.js");
    b = function(f) {
        c.fire("login.check", {
            isLogin: function() {
                d.get("/iask/api/ikhelplimit?un=" + encodeURIComponent(f) + "&t=" + (new Date()).getTime(),
                function(h, i, o) {
                    var n = d.json.parse(o.responseText);
                    if (!n || n.status != 0) {
                        return
                    }
                    var j = n.data;
                    var g = j.replyLimit;
                    var l = j.replyMaxNum;
                    var m = j.ifLogin;
                    var k = j.ifUsernameOK;
                    if (k == 0) {
                        a.alert("\u5bf9\u4e0d\u8d77\uff01\u6b64\u7528\u6237\u4e0d\u5b58\u5728\u3002");
                        return false
                    }
                    if (l == 0 || g <= 0) {
                        a.alert("\u5bf9\u4e0d\u8d77\uff01\u6b64\u7528\u6237\u6682\u65f6\u65e0\u6cd5\u63a5\u6536\u63d0\u95ee\u6c42\u52a9\uff0c\u60a8\u53ef\u4ee5\u6362\u4e00\u4f4d\u7528\u6237\u8bd5\u8bd5\u3002");
                        return false
                    }
                    if (m == 0) {
                        location.href = "/new?fix=" + encodeURIComponent(f);
                        return false
                    } else {
                        location.href = "/new?fix=" + encodeURIComponent(f)
                    }
                })
            }
        })
    };
    return b
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/dialog/dialog.js", "/static/common/ui/event/event.js"]);F.module("/static/common/ui/union/union.js",
function(c, a) {
    var b = c("/static/common/lib/tangram/base/base.js");
    var e = false;
    function d(f) {
        if (e) {
            return f()
        }
        b.sio("http://cbjs.baidu.com/js/m.js").callByBrowser(f)
    }
    a.init = function(f, g, h) {
        d(function() {
            if (!e && b.isObject(h) && "undefined" != typeof BAIDU_CLB_addOrientation) {
                b.object.each(h,
                function(j, i) {
                    if (b.isString(j) && b.string(j).trim() != "") {
                        BAIDU_CLB_addOrientation(i, j)
                    }
                })
            }
            if ("undefined" != typeof BAIDU_CLB_fillSlotAsync) {
                BAIDU_CLB_fillSlotAsync(f, g)
            }
            e = true
        })
    };
    return a
},
["/static/common/lib/tangram/base/base.js"]);F.module("/static/common/ui/goto-set-avatar/goto-set-avatar.js",
function(e, a) {
    var d = e("/static/common/lib/tangram/base/base.js");
    var c = e("/static/common/ui/event/event.js");
    var b = e("/static/common/ui/tip/tip.js");
    function g(i, h, j, k) {
        var l = d('<div class="goto-set-avatar" />').appendTo(i).html('<a href="' + (h || "/uhome/set/profile?type=avatar") + '" target="' + (j || "_blank") + '">' + (k || "\u66f4\u6362\u5f62\u8c61") + "</a><p></p>");
        i.addClass("avarta-mask-p");
        i.mouseover(function() {
            l.css("display", "block")
        }).mouseout(function() {
            l.css("display", "none")
        })
    }
    function f(h, j) {
        var i = new b({
            width: 225,
            content: ['<img style="margin-top:2px;" border="0" src="http://cdn.iknow.bdimg.com/static/common/ui/goto-set-avatar/img/beg-truth.png" />', '<span class="tip-content-span">\u606d\u559c\u4f60\u83b7\u5f97\u81ea\u5b9a\u4e49\u5934\u50cf\u6743\u9650\u771f\u5b9e\u5934\u50cf\u66f4\u80fd\u8ba9\u7f51\u53cb\u77e5\u9053\u4f60</span>'].join(""),
            offset: [0, 0],
            closebox: true,
            autoDispose: true,
            direction: "down",
            onclose: function() {
                c.fire("tip.del", {
                    type: j.type
                },
                false);
                var k = "http://msg.zhidao.baidu.com/";
                var l = k + "close_notice?t=" + (new Date()).getTime();
                l += "&" + d.url.jsonToQuery({
                    type: j.type,
                    id: j.id,
                    count: j.count
                });
                d.sio(l).callByBrowser()
            }
        });
        i.show(h)
    }
    a.showTip = f;
    a.init = function(h) {
        g(d(h.elem), h.href, h.openTag, h.str)
    };
    return a
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/event/event.js", "/static/common/ui/tip/tip.js"]);F.module("/static/common/ui/placeholder/placeholder.js",
function(c, a) {
    var b = c("/static/common/lib/tangram/base/base.js");
    var d = "f-light";
    var e = {
        _support: (function() {
            return "placeholder" in document.createElement("input")
        })(),
        init: function(f, g) {
            if (!e._support) {
                if (g) {
                    d = g
                }
                b(f).each(function() {
                    if (b(this).attr("placeholder")) {
                        e.create(this)
                    }
                })
            }
        },
        create: function(f) {
            e._setValue(f);
            b(f).on("focus",
            function(g) {
                if (this.value === b(this).attr("placeholder")) {
                    this.value = "";
                    b(this).removeClass(d)
                }
            }).on("blur",
            function(g) {
                if (this.value === "") {
                    e._setValue(this)
                } else {
                    this._is_placeholder_ = undefined
                }
            })
        },
        _setValue: function(f) {
            f.value = b(f).attr("placeholder");
            b(f).addClass(d);
            f._is_placeholder_ = true
        }
    };
    a = e;
    return a
},
["/static/common/lib/tangram/base/base.js"]);F.module("/static/common/ui/jump-top/jump-top.js",
function(c, e) {
    var d = c("/static/common/lib/tangram/base/base.js"),
    f = c("/static/common/ui/event/event.js"),
    h = c("/static/common/ui/dialog/dialog.js");
    function b() {
        return (new Date()).getTime()
    }
    function m(q, p, s, r) {
        return - s * (q /= r) * (q - 2) + p
    }
    function j(r, s, q, t) {
        var p = k = 0;
        d.forEach(s,
        function(y, v) {
            var w = b(),
            x = q || 500,
            u = v == "scrollTop" ? r[v]() : parseFloat(r.css(v)) || 0,
            z = parseFloat(y) - u; (function() {
                var A = b() - w;
                if (A > x) {
                    A = x;
                    if (v == "scrollTop") {
                        r[v](m(A, u, z, x))
                    } else {
                        r.css(v, m(A, u, z, x) + "px")
                    }++k === ++p && t && t.apply(r);
                    return true
                }
                if (v == "scrollTop") {
                    r[v](m(A, u, z, x))
                } else {
                    r.css(v, m(A, u, z, x) + "px")
                }
                setTimeout(arguments.callee, 10)
            })()
        })
    }
    function l(q) {
        var p = "http://zhidao.baidu.com/v.gif?",
        r = d.extend({
            pos: "jump-survey"
        },
        q);
        d.sio(p + d.url.jsonToQuery(r, encodeURIComponent)).log()
    }
    var o = '<div class="jump-top"><a href="#" target="_self">\u8fd4\u56de\u9876\u90e8</a><s class="s-point-lt"></s><s class="s-point-rt"></s><s class="s-point-lb"></s><s class="s-point-rb"></s></div>',
    g = '<div class="jump-feedback"><a href="http://zhidao.baidu.com/feedback" target="_blank">\u610f\u89c1\u53cd\u9988</a><s class="s-point-lt"></s><s class="s-point-rt"></s><s class="s-point-lb"></s><s class="s-point-rb"></s></div>',
    n = '<a href="#" class="jump-survey"></a>',
    a = ['<div class="dialog-survey-box">', '<div class="line survey-banner">', '<img src="http://img.iknow.bdimg.com/zhidao/survey-banner.png" border="0" />', "</div>", '<div class="line survey-check-main">', '<h3 class="pb-10 f-yahei">', '<i class="icon-verline-green mr-10"></i>', "<span>\u4e3a\u4ec0\u4e48\u4e0d\u518d\u7b54\u9898\u5e2e\u52a9\u7f51\u53cbT.T\uff1f</span><em>\uff08\u591a\u9009\uff09</em>", "</h3>", '<p><label><input type="checkbox" value="a" name="survey-check" />A. \u6211\u524d\u6bb5\u65f6\u95f4\u5fd8\u8bb0\u6765\u7b54\u9898\u4e86\uff0c\u5f88\u4e50\u610f\u7ee7\u7eed\u56de\u7b54\u3002<a href="/uhome" class="btn-mark-green" target="_blank">\u73b0\u5728\u5c31\u53bb</a></label></p>', '<p><label><input type="checkbox" value="b" name="survey-check" />B. \u6211\u592a\u5fd9\u4e86\uff0c\u6ca1\u65f6\u95f4\u6765\u7b54\u9898</label></p>', '<p><label><input type="checkbox" value="c" name="survey-check" />C. \u9898\u76ee\u592a\u5c11\uff0c\u8981\u4e0d\u5c31\u592a\u96be\u5566\uff0c\u6ca1\u6709\u6211\u4f1a\u7b54\u7684</label></p>', '<p><label><input type="checkbox" value="d" name="survey-check" />D. \u4e00\u4e2a\u4eba\u7b54\u9898\uff0c\u6ca1\u6709\u4eba\u4e00\u8d77\u8ba8\u8bba\uff0c\u65f6\u95f4\u957f\u4e86\u6ca1\u52a8\u529b</label></p>', '<p><label><input type="checkbox" value="e" name="survey-check" />E. \u63d0\u95ee\u8005\u90fd\u4e0d\u91c7\u7eb3\uff0c\u7b54\u9898\u4e5f\u83b7\u5f97\u4e0d\u4e86\u7ecf\u9a8c\u503c\u548c\u8d22\u5bcc\u503c</label></p>', '<p><label><input type="checkbox" value="f" name="survey-check" />F. \u8d22\u5bcc\u503c\u4e0d\u77e5\u9053\u6709\u4ec0\u4e48\u7528\uff0c\u5546\u57ce\u4e1c\u897f\u6ca1\u6709\u5438\u5f15\u529b</label></p>', '<p><label><input type="checkbox" value="g" name="survey-check" />G. \u6211\u7684\u63d0\u95ee\u6216\u56de\u7b54\u65e0\u6545\u88ab\u5220\u4e86\uff0c\u6295\u8bc9\u4e86\u4f46\u5904\u7406\u5f88\u6162</label></p>', '<p><label><input type="checkbox" value="h" name="survey-check" />H. \u5e73\u53f0\u4e0a\u4f5c\u5f0a\u6cdb\u6ee5\uff0c\u8ba9\u6211\u4eec\u8fd9\u4e9b\u8f9b\u82e6\u7b54\u9898\u7684\u4eba\u5f88\u53d7\u4f24</label></p>', '<p><label><input type="checkbox" value="i" name="survey-check" />I. \u4e0d\u4e60\u60ef\u73b0\u5728\u7684\u56de\u7b54\u9875\u9762\uff0c\u4e0d\u65b9\u4fbf</label></p>', '<p><label><input type="checkbox" value="j" name="survey-check" />J. \u7cfb\u7edf\u603b\u662f\u51fa\u6545\u969c\uff0c\u4e0d\u5b89\u5168</label></p>', '<h3 class="pb-10 mt-20 f-yahei">', '<i class="icon-verline-green mr-10"></i>', "<span>\u6211\u8fd8\u6709\u60f3\u8bf4\u7684\uff1a</span>", "</h3>", '<div class="line survey-desc-main">', "<textarea></textarea>", "</div>", '<div class="line surver-button mt-15">', '<span class="survey-tip-error grid"></span>', '<a class="btn btn-32-green grid-r"><em><b>\u63d0\u4ea4\u95ee\u5377</b></em></a>', "</div>", "</div>", "</div>"].join("");
    function i(s) {
        s.preventDefault();
        var p = F.context("user"),
        q = h.alert(a, {
            width: 578,
            height: d.browser.ie < 8 ? "auto": 627,
            titleText: "",
            buttons: [],
            draggable: false
        }),
        r = d(q.getElement("foreground")).parent().addClass("dialog-survey-box");
        r.find(".btn-mark-green").click(function(t) {
            l({
                pos: "goto-uhome",
                uname: p.name,
                uid: p.uid,
                gradeIndex: p.gradeIndex
            })
        });
        r.find(".btn-32-green").click(function(w) {
            var t = [],
            v = r.find('input[name="survey-check"]:checked'),
            x = d.string(r.find("textarea").val()),
            u = r.find(".survey-tip-error");
            v.each(function() {
                t.push(this.value)
            });
            if (t.length == 0 && x.trim() == "") {
                u.show().text("\u60a8\u8fd8\u6ca1\u6709\u544a\u8bc9\u6211\u4e3a\u4ec0\u4e48\u4e0d\u6765\u7b54\u9898\u5462T.T")
            } else {
                if (x.getByteLength() > 1000) {
                    u.show().text("\u5b57\u6570\u592a\u591a\u5566\uff0c\u7b80\u7565\u4e00\u70b9\u5427^^")
                } else {
                    l({
                        uname: p.name,
                        uid: p.uid,
                        gradeIndex: p.gradeIndex,
                        checks: t.join(","),
                        desc: x
                    });
                    f.fire("dialog.close");
                    h.alert("\u60a8\u7684\u53cd\u9988\u6211\u4eec\u5df2\u7ecf\u6536\u5230\uff0c\u611f\u8c22\u60a8\u7684\u53c2\u4e0e\u3002")
                }
            }
        })
    }
    e = function(s) {
        if (!d.isObject(s)) {
            s = {}
        }
        if (!d.isArray(s.offset)) {
            s.offset = [0, 0]
        }
        var r = d("<div />").addClass("jump-top-box").css({
            right: (s.offset[1] + 5) + "px"
        }).html([s.isSurvey ? n: "", o, s.isFeedback ? g: ""].join("")).appendTo(document.body);
        r.find(".jump-top a").click(function(t) {
            t.preventDefault();
            j(d(d.browser.ie || d.browser.firefox ? document.documentElement: document.body), {
                scrollTop: "0px"
            },
            500)
        });
        r.find(".jump-survey").click(i);
        function p(u) {
            var w = d(window).scrollTop(),
            t = (d.browser.ie == 6 ? w: 0) + d(window).height() - d(r).height() - s.offset[0] - 88;
            var v = w > d(window).height() / 2 ? "visible": "hidden";
            s.isFeedback || s.isSurvey ? r.find(".jump-top").css("visibility", v) : r.css("visibility", v);
            j(r, {
                top: t + "px"
            },
            u || 0)
        }
        var q;
        if (d.browser.ie == 6) {
            r.css("position", "absolute")
        }
        d(window).on("resize scroll",
        function() {
            clearTimeout(q);
            q = setTimeout(p, 200)
        });
        p(1)
    };
    return e
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/event/event.js", "/static/common/ui/dialog/dialog.js"]);F.module("/static/common/ui/complain/complain.js",
function(e, b) {
    var d = e("/static/common/lib/tangram/base/base.js");
    var c = e("/static/common/ui/event/event.js");
    var a = e("/static/common/ui/dialog/dialog.js");
    var f = e("/static/common/ui/submit/submit.js");
    var g = e("/static/common/ui/authcode/authcode.js");
    function h(i) {
        c.fire("dialog.close");
        var j = "\u60a8\u7684\u7533\u8bc9\u5df2\u63d0\u4ea4\u6210\u529f\uff0c\u6211\u4eec\u6b63\u5728\u4e3a\u60a8\u5904\u7406\uff0c\u8bf7\u8010\u5fc3\u7b49\u5019\u901a\u77e5\u3002";
        a.alert(j, {
            onaccept: function() {
                window.location.reload(true)
            }
        });
        setTimeout(function() {
            c.fire("dialog.close");
            window.location.reload(true)
        },
        3000)
    }
    b.init = function(o, n, l) {
        var m, k = '<span style="width:78px;font-weight: bold;vertical-align: top;">\u7533\u8bc9\u7406\u7531\uff1a</span><textarea id="complain-dialog" cols="37" rows="5" maxlength="1000" style="width:290px;height:90px;border:1px solid #000;"></textarea>';
        params = {
            cm: 100043,
            qid: o,
            type: 100001
        },
        dlgOpt = {
            titleText: "\u77e5\u9053\u63d0\u793a",
            height: 240,
            width: 400,
            autoDispose: true
        }; !! n && d.object.extend(params, {
            aid: n,
            type: 100009
        });
        var i = new a(d.extend({
            type: "confirm",
            content: k,
            onaccept: function() {
                if (l == 3) {
                    h();
                    return
                }
                params.appeal_reason = d.string(d("#complain-dialog").val() || "").trim();
                if (l == 2) {
                    d.object.extend(params, {
                        mode_type: "realtime"
                    })
                }
                d.object.extend(params, m.getCode());
                if (d.string(params.vcode || "").trim().length != 4) {
                    j();
                    return
                }
                new f({
                    params: params,
                    syncId: o,
                    beforeJump: h,
                    errorDeal: function(r, q, p) {
                        if (p == 12302) {
                            m.getAuthElement("input").css("border", "1px solid red");
                            m.change(function() {
                                m.getAuthElement("input").val("")
                            })
                        }
                    }
                })
            }
        },
        dlgOpt));
        m = new g({
            container: d(".tang-content"),
            from: "new_complain",
            isDisplay: true,
            className: "ik-authcode-s1",
            initCallback: function() {
                m.getAuthElement("input").focus(function() {
                    d(this).css("border", "1px solid #d5d5d5")
                });
                m.getAuthElement("change").click(function() {
                    m.getAuthElement("input")[0].focus()
                })
            }
        });
        function j() {
            m.getAuthElement("input").css("border", "1px solid red")
        }
    };
    return b
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/event/event.js", "/static/common/ui/dialog/dialog.js", "/static/common/ui/submit/submit.js", "/static/common/ui/authcode/authcode.js"]);F.module("/static/common/ui/authcode/authcode.js",
function(e, b) {
    var d = e("/static/common/lib/tangram/base/base.js");
    var a = e("/static/common/ui/dialog/dialog.js");
    var c = e("/static/common/ui/tip/tip.js");
    var f = d.createClass(function(r) {
        var k = {},
        l = (r && r.url) || "/api/vcode",
        g = d.isString(r.container) ? d("#" + r.container) : d(r.container),
        i = "IK_AUTHCODE_" + this.guid,
        o = this,
        q = new c({
            width: 160,
            content: "\u8bf7\u70b9\u51fb\u540e\u8f93\u5165\u9a8c\u8bc1\u7801",
            direction: "up"
        });
        this.container = g;
        if (!k[i] || r.force) {
            k[i] = {
                display: false,
                show: false
            };
            j({
                callback: function() {
                    p();
                    m();
                    if (d.isFunction(r.callback)) {
                        r.callback.call(o)
                    }
                }
            })
        }
        function j(t) {
            var s = l + "?from=" + r.from;
            if (r.urlParams) {
                s += "&" + d.url.jsonToQuery(r.urlParams)
            }
            d.get(s + "&t=" + (new Date()).getTime(),
            function(w, v, u) {
                if (w.status == 0) {
                    if (w.data.need_verify) {
                        d.extend(k[i], {
                            vcodeStr: w.data.vcode_str,
                            imgUrl: w.data.imgurl,
                            display: false,
                            show: true,
                            from: r.from || ""
                        });
                        if (d.isFunction(t.callback)) {
                            t.callback.call(w.data)
                        }
                    }
                }
            },
            "json")
        }
        var h = this.getAuthElement = function(s) {
            return d(".ik-authcode-" + s, o.container[0])
        };
        function p() {
            var v = d('<div class="ik-authcode-wrapper"></div>');
            v.append('<label class="ik-authcode-label">\u9a8c\u8bc1\u7801\uff1a</label>').append('<input class="ik-authcode-input" type="text" maxlength="4">').append('<img class="ik-authcode-img" src="about:blank" style="display: none; ">').append('<a class="ik-authcode-change" href="#" style="display: none; ">\u770b\u4e0d\u6e05\uff1f</a>').append('<div class="ik-authcode-error" style="display: none; ">\u9a8c\u8bc1\u7801\u9519\u8bef</div>');
            if (r.className) {
                v.addClass(r.className)
            }
            o.container.append(v).show();
            var w = h("tip"),
            u = h("error"),
            s = h("input"),
            t = h("img");
            authCodeChange = h("change");
            if (d.isFunction(r.initCallback)) {
                r.initCallback()
            }
            o.container.mouseover(function(x) {
                if (!k[i].display) {
                    clearTimeout(o.mouseTimeOut);
                    q.show(s)
                }
            }).mouseout(function(x) {
                o.mouseTimeOut = setTimeout(function() {
                    q.hide()
                },
                200)
            });
            authCodeChange.click(function(x) {
                o.change(function() {
                    s.focus().val("");
                    u.hide()
                });
                x.preventDefault()
            });
            t.click(function(x) {
                authCodeChange.trigger("click")
            }).css("cursor", "pointer");
            if (r.isDisplay) {
                m()
            }
        }
        function m() {
            if (!k[i].display) {
                h("img").attr("src", k[i].imgUrl).show();
                h("tip").hide();
                h("change").show();
                k[i].display = true
            }
        }
        function n() {
            h("error").show();
            h("input").focus()
        }
        this.getCode = function() {
            return (k[i] && k[i].show) ? {
                vcode_str: k[i].vcodeStr,
                vcode: h("input").val()
            }: null
        };
        this.getOptions = function() {
            return r
        };
        this.submitParam = function(s) {
            return d.extend(s || {},
            o.getCode())
        };
        this.change = function(s) {
            j({
                callback: function() {
                    m();
                    d.isFunction(s) && s(arguments)
                }
            })
        };
        this.dispose = function() {
            h("wrapper").remove()
        };
        this.error = function() {
            if (k[i] && k[i].show) {
                n();
                j({
                    callback: function() {
                        m();
                        var s = h("input");
                        s.value = "";
                        s.focus()
                    }
                })
            } else {
                a.alert("\u7f51\u7edc\u5f02\u5e38\uff0c\u8bf7\u91cd\u65b0\u63d0\u4ea4")
            }
        }
    });
    b = f;
    return b
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/dialog/dialog.js", "/static/common/ui/tip/tip.js"]);F.module("/static/common/ui/captcha/captcha.js",
function(f, b) {
    var e = f("/static/common/lib/tangram/base/base.js"),
    a = f("/static/common/ui/dialog/dialog.js"),
    d = f("/static/common/ui/event/event.js");
    var c = e.createClass(function(i) {
        var o = e.object.extend({
            type: "pcbefore",
            from: "",
            url: "/api/vcode",
            tip: "\u70b9\u51fb\u4ee5\u4e0b\u6587\u5b57\u8f93\u5165\u9a8c\u8bc1\u7801",
            errorTip: "\u9a8c\u8bc1\u7801\u4e0d\u6b63\u786e"
        },
        i),
        m = this,
        h = [],
        g = 0,
        n = ".captcha-buttons a div, .captcha-content-img, .captcha-input dd{background:url(#{imgUrl}&t=#{t}) no-repeat;}",
        j = ["-6px -36px", "-53px -39px", "-96px -38px", "0px -83px", "-53px -85px", "-96px -86px", "-2px -135px", "-53px -135px", "-96px -135px"],
        l = ['<div class="captcha-box">', '<div class="captcha-input">', '<div class="captcha-input-title">\u9a8c\u8bc1\u7801</div>', '<dl class="ml-5"><dt class="grid-r"></dt><dd></dd><dd></dd><dd></dd><dd></dd></dl>', "</div>", '<div class="captcha-content">', '<div><a href="#" class="captcha-content-img mt-5"></a><a href="#" class="captcha-content-change f-12 ml-5">\u770b\u4e0d\u6e05?</a></div>', '<p class="captcha-content-tip f-12">#{tip}</p>', '<div class="captcha-buttons">', '<a href="#"><div class="captcha-btn-1"></div></a>', '<a href="#"><div class="captcha-btn-2"></div></a>', '<a href="#"><div class="captcha-btn-3"></div></a>', '<a href="#"><div class="captcha-btn-4"></div></a>', '<a href="#"><div class="captcha-btn-5"></div></a>', '<a href="#"><div class="captcha-btn-6"></div></a>', '<a href="#"><div class="captcha-btn-7"></div></a>', '<a href="#"><div class="captcha-btn-8"></div></a>', '<a href="#"><div class="captcha-btn-9"></div></a>', "</div>", "</div>", "</div>"].join("");
        this.getCode = function() {
            return {
                vcode_str: o.vcode.vcodeStr,
                vcode: h.join("")
            }
        };
        this.change = function() {
            k({
                url: o.url,
                from: o.from || "",
                type: o.type,
                callback: function() {
                    m.captchaInputs.each(function() {
                        e(this).removeAttr("style")
                    });
                    g = 0;
                    h.length = 0
                }
            })
        };
        this.styleSheet = function(q) {
            this.styleSheetEle = e("#captcha-sheet")[0];
            if (!this.styleSheetEle) {
                this.styleSheetEle = e('<style id="captcha-sheet" type="text/css"></style>').appendTo("head")[0]
            }
            var p = e.string(n).format({
                imgUrl: q.imgUrl,
                t: (new Date()).getTime()
            });
            if (this.styleSheetEle.styleSheet) {
                this.styleSheetEle.styleSheet.cssText = p
            } else {
                this.styleSheetEle.innerHTML = p
            }
        };
        this.error = function(p) {
            m.change();
            m.captchaErrTip.text(o.errorTip).addClass("f-red")
        };
        this.submit = function(p) {
            if (p.submitParams) {
                e.extend(p.submitParams.params, m.getCode());
                d.fire("catcha.submit", p.submitParams)
            }
        };
        function k(q) {
            var p = e.string("#{url}?from=#{from}&style=#{type}&t=").format(q) + (new Date()).getTime();
            e.get(p,
            function(r) {
                if (r.status == 0) {
                    if (r.data.need_verify) {
                        e.extend(o.vcode = {},
                        {
                            vcodeStr: r.data.vcode_str,
                            imgUrl: r.data.imgurl,
                            from: q.from || ""
                        });
                        if (e.isFunction(q.callback)) {
                            q.callback.call(r.data)
                        }
                        m.styleSheet(o.vcode)
                    }
                }
            },
            "json")
        }
        this.grid = function() {
            var t = new a({
                type: "confirm",
                titleText: "\u77e5\u9053\u63d0\u793a",
                width: 345,
                height: 340,
                autoDispose: true,
                content: e.string(l).format({
                    tip: o.tip
                }),
                buttons: []
            });
            this.dialog = t;
            var r = e("#" + t._ids.content),
            q = r.find(".captcha-input dt"),
            p = r.find(".captcha-content-img"),
            s = r.find(".captcha-content-change"),
            u = r.find(".captcha-input dd");
            e.extend(this, {
                captchaInputs: u,
                captchaErrTip: r.find(".captcha-content-tip")
            });
            q.click(function() {
                if (g == 0) {
                    return
                }
                h.pop();
                e(this).nextAll("dd").eq(--g).removeAttr("style")
            });
            p.add(s).click(function(v) {
                m.change();
                v.preventDefault()
            });
            r.find(".captcha-buttons a").each(function(v) {
                e(this).click(function(w) {
                    w.preventDefault();
                    if (g == 0) {
                        m.captchaErrTip.text(o.tip).removeClass("f-red")
                    } else {
                        if (g == 4) {
                            return
                        }
                    }
                    h.push(v + 1);
                    u.eq(g++).css("background-position", j[v]);
                    if (g == 4) {
                        m.submit(o)
                    }
                })
            })
        };
        k({
            url: o.url,
            from: o.from || "",
            type: o.type,
            callback: function() {
                m.grid();
                if (e.isFunction(o.callback)) {
                    o.callback.call(res.data)
                }
            }
        })
    });
    b = c;
    return b
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/dialog/dialog.js", "/static/common/ui/event/event.js"]);F.module("/static/common/ui/blink/blink.js",
function(c, a) {
    var b = c("/static/common/lib/tangram/base/base.js");
    c("/static/common/ui/baidu/baidu.js");
    a.init = function(e, f) {
        var h = b(e).offset(),
        g = b("<div/>");
        var d = {
            left: 14,
            top: -23,
            color: "#DF4843",
            "font-size": "20px",
            "font-weight": "bold",
            text: "+1",
            "z-index": 101,
            duration: 400
        };
        b.object.extend(d, f);
        g.css({
            position: "absolute",
            "font-weight": d["font-weight"],
            "font-size": d["font-size"],
            left: (h.left + d.left) + "px",
            top: (h.top + d.top) + "px",
            color: d.color,
            "z-index": d["z-index"]
        }).html(d.text).appendTo(document.body);
        b.fx.fadeOut(g.get(0), {
            duration: d.duration,
            interval: 50,
            transition: function(i) {
                return i / 3
            },
            onbeforeupdate: function() {
                g.css("top", (h.top + d.top) + "px");
                h.top -= 1
            },
            onafterfinish: function() {
                b.isFunction(d.callback) && d.callback();
                g.remove()
            }
        })
    };
    return a
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/baidu/baidu.js"]);F.module("/static/common/ui/prof-anonymous/prof-anonymous.js",
function(c, a) {
    var b = c("/static/common/lib/tangram/base/base.js");
    var d = c("/static/common/ui/make-fixed/make-fixed.js");
    c("/static/common/lib/tangram/plugin/fx/fx.js");
    var f = null;
    var g = null;
    var e = b.createClass(function() {
        this.cookieName = "IK_PROFANONYMOUS";
        this.cookieTip = "IK_PROFANONYMOUS_CLOSE";
        this.cookieExpire = "IK_PROFANONYMOUS_EXPIRE";
        this.isExpand = true;
        this.tip = null
    }).extend({
        getCookie: function() {
            return b.cookie.get(this.cookieName)
        },
        isAnonymous: function(j) {
            var i = this;
            var h = i.getCookie();
            if (h && h.indexOf(j) > -1) {
                return true
            }
            return false
        },
        isExpire: function() {
            var h = this.getCookie();
            if (!h) {
                return true
            } else {
                if (F.context("user").isLogin == "1") {
                    var i = new Date().getTime();
                    var j = b.cookie.get(this.cookieExpire);
                    if (!b.cookie.get(this.cookieExpire)) {
                        j = new Date().getTime() + (7 * 24 * 3600 * 1000);
                        j = b.date.format(new Date(j), "yyyy-MM-dd HH:mm:ss");
                        b.cookie.set(this.cookieExpire, j, {
                            path: "/",
                            expires: 180 * 24 * 3600 * 1000
                        })
                    } else {
                        if (i - b.date.parse(j) > 0) {
                            return true
                        }
                    }
                }
                return false
            }
        },
        isUserClose: function() {
            if ( + b.cookie.get(this.cookieTip) > 0) {
                return true
            }
            return false
        },
        init: function(h) {
            if (!this.isExpire() && F.context("user").isLogin != "1") {
                this.initTip()
            }
        },
        close: function(i) {
            var h = this;
            h.isExpand = false;
            if (f) {
                clearTimeout(f)
            }
            b(h.tip.get(0)).stop().animate({
                width: "35px"
            },
            "fast",
            function() {
                h.tip.find("span").addClass("tip-expand").removeClass("tip-close")
            });
            if (i == false) {
                b.cookie.set(h.cookieTip, 1, {
                    path: "/",
                    expires: 180 * 24 * 60 * 60 * 1000
                })
            }
        },
        expand: function(i) {
            var h = this;
            h.isExpand = true;
            b(h.tip.get(0)).stop().animate({
                width: "245px"
            },
            "fast",
            function() {
                h.tip.find("span").addClass("tip-close").removeClass("tip-expand")
            });
            if (i == false) {
                b.cookie.set(h.cookieTip, 0, {
                    path: "/",
                    expires: 180 * 24 * 60 * 60 * 1000
                })
            }
        },
        initTip: function() {
            var h = ["\u3010\u7b49\u5f85\u56de\u7b54\u3011", "\u3010\u5df2\u56de\u7b54\u3011"];
            var j = this;
            var i = "/prof/api/questioninfo?t=" + new Date().getTime();
            b.get(i,
            function(m) {
                if (m.errNo == 0 && m.data.length > 0) {
                    var l = "";
                    if (F.context("hot-doctor")) {
                        l = "pgctip-doctor"
                    }
                    var n = "<div id='pgctip' class='pgctip " + l + "'><div class='pgctip-main'><a class='grid'><b>\u5386\u53f2\u63d0\u95ee(#{count})</b><span class='tip-close'></span></a><ul>#{content}</ul></div></div>";
                    var k = "<li><a href='/question/#{qid}' target='_blank'>#{index}\uff0e#{qStatus}#{qTitle}</a></li>";
                    var p = [];
                    b.each(m.data,
                    function(q, r) {
                        if (q < 3) {
                            p.push(b.string(k).format({
                                index: q + 1,
                                qid: r.qid,
                                qTitle: b.string(r.title).subByte(38, "..."),
                                qStatus: h[r.qstatus || 0]
                            }))
                        }
                    });
                    var o = b.string(n).format({
                        content: p.join(""),
                        count: m.data.length
                    });
                    j.tip = b(o);
                    j.tip.appendTo(b("#body"));
                    if (!j.isUserClose()) {
                        j.expand()
                    } else {
                        j.close()
                    }
                    setTimeout(function() {
                        j.close(false)
                    },
                    3000);
                    d.fixed({
                        dom: j.tip[0]
                    });
                    b("#pgctip").on("click",
                    function() {
                        if (j.isExpand) {
                            j.close()
                        } else {
                            j.expand()
                        }
                    }).on("mouseover",
                    function(q) {
                        q.preventDefault();
                        j.expand()
                    }).on("mouseout",
                    function(q) {
                        q.preventDefault();
                        j.close()
                    })
                }
            },
            "json")
        }
    });
    a = new e();
    return a
},
["/static/common/lib/tangram/base/base.js", "/static/common/ui/make-fixed/make-fixed.js", "/static/common/lib/tangram/plugin/fx/fx.js"]);F.module("/static/common/ui/make-fixed/make-fixed.js",
function(d, b) {
    var c = d("/static/common/lib/tangram/base/base.js");
    var a = {
        dom: null,
        top: 10
    };
    function f(h) {
        if (!h || !h.dom) {
            return
        }
        h = c.object.extend(c.object.clone(a), h);
        var g = e(h);
        c(window).on("resize scroll", g)
    }
    function e(h) {
        var g = c(h.dom);
        var j = g.offset().top;
        var i;
        return function() {
            var k = document.documentElement.scrollTop + document.body.scrollTop;
            if (k + h.top >= j) {
                if (c.browser.ie == 6) {
                    clearTimeout(i);
                    i = setTimeout(function() {
                        g.css({
                            position: "absolute",
                            top: k + h.top
                        })
                    },
                    200)
                } else {
                    g.css({
                        position: "fixed",
                        top: h.top
                    })
                }
            } else {
                g.css({
                    position: "",
                    top: ""
                })
            }
        }
    }
    b.fixed = f;
    return b
},
["/static/common/lib/tangram/base/base.js"]);F.module("/static/common/ui/file-type/file-type.js",
function(c, a) {
    var b = c("/static/common/lib/tangram/base/base.js");
    var e = {
        "file-image": "jpg,jpeg,gif,bmp,png,jpe,cur,svg,svgz,tif,tiff,ico",
        "file-doc": "doc,docx,ods,ots,odt,rtf,dot,dotx,odm, vsd,vsdx",
        "file-pdf": "pdf",
        "file-excel": "xls,xlsx,xlt,xltx,csv",
        "file-txt": "txt,html,htm,xhtml,xml,js,css",
        "file-mp3": "wma,wav,mp3,aac,ra,ram,mp2,ogg,aif,mpega,amr,mid,midi",
        "file-video": "wmv,rmvb,mpeg4,mpeg2,flv,avi,3gp,mpga,qt,rm,wmz,wmd,wvx,wmx,wm,swf,mpg,mp4,mkv,mpeg,mov",
        "file-ppt": "ppt,pptx,pps,pot,ppsx,potx",
        "file-ipa": "ipa",
        "file-exe": "exe,msi",
        "file-zip": "zip,rar,7z,tar,gz",
        "file-apk": "apk",
        "file-bt": "torrent",
        "file-epub": "epub",
        "file-umd": "umd"
    },
    d = {
        "0": ["file-doc", "file-pdf", "file-excel", "file-ppt", "file-txt", "file-epub", "file-umd"],
        "1": ["file-exe", "file-apk", "file-ipa"],
        "2": ["file-mp3"],
        "3": ["file-video"],
        "4": ["file-bt"],
        "5": ["file-unknow"]
    };
    a = function(i) {
        i = ("" + i).toLocaleLowerCase();
        var g = 5,
        h = "\u5176\u4ed6",
        f = "unknow";
        b.each(e,
        function(j, k) {
            if (b.array(b.makeArray(k.split(","))).contains(i)) {
                f = j;
                b.each(d,
                function(l, m) {
                    if (b.array(m).contains(j)) {
                        g = l;
                        return false
                    }
                });
                return false
            }
        });
        return {
            fileClass: f,
            fileType: g
        }
    };
    return a
},
["/static/common/lib/tangram/base/base.js"]);